Shows data for TV Shows but not Movies
rpitera opened this issue · 7 comments
Describe the Bug
Get data for TV Shows but no data for Movies
The Error
No error on HA even with debug turned on. Actually shows as successful in retrieving data for every log entry.
2024-08-15 09:28:17.257 DEBUG (MainThread) [custom_components.plex_recently_added.coordinator] Finished fetching plex_recently_added data in 0.158 seconds (success: True)
Indicate if you followed all steps in the troubleshooting doc
Pointing URL at http://PLEXHOST:32400/library/recentlyAdded?X-Plex-Token=MYPLEXTOKEN, I can see both my TV Shows and Movies that have been recently added up to current. The library section types match those in my component config.
What data does the sensor display if any?
TV SHOWS:
friendly_name: Kaizen Plex Recently Added Show
data:
- title_default: $title
line1_default: $episode
line2_default: $release
line3_default: $number - $rating - $runtime
line4_default: $genres
icon: mdi:eye-off
- airdate: '2024-08-14T00:58:00Z'
aired: '2024-08-07'
release: $day, $date $time
flag: true
title: The Ark
episode: The Other You
season_num: '2'
episode_num: '4'
number: S02E04
runtime: 43
studio: ''
genres: ''
rating: ''
summary: >-
When two realities intertwine, two theories on what could and shouldn't have
been are revealed.
trailer: null
poster: /kaizen_plex_recently_added?path=/library/metadata/4647/thumb/1722759051
fanart: /kaizen_plex_recently_added?path=/library/metadata/4647/art/1722759051
deep_link: >-
http://192.168.1.128:32400/web/index.html#!/server/91a8de06fc2940bb9536feee37f99f24151cc098/details?key=%2Flibrary%2Fmetadata%2F4761
- airdate: '2024-08-12T12:27:58Z'
aired: '2024-08-12'
release: $day, $date $time
flag: true
title: Futurama
episode: The Temp
season_num: '9'
episode_num: '3'
number: S09E03
runtime: 23
studio: ''
genres: ''
rating: ''
summary: A mysterious temp worker takes over Fry's job... as well as his entire life.
trailer: https://www.youtube.com/watch?v=xkGtMGs-k3Q
poster: /kaizen_plex_recently_added?path=/library/metadata/3688/thumb/1722759051
fanart: /kaizen_plex_recently_added?path=/library/metadata/3688/art/1722759051
deep_link: >-
http://192.168.1.128:32400/web/index.html#!/server/91a8de06fc2940bb9536feee37f99f24151cc098/details?key=%2Flibrary%2Fmetadata%2F4745
MOVIES:
friendly_name: Kaizen Plex Recently Added Movie
data:
- title_default: $title
line1_default: $episode
line2_default: $release
line3_default: $number - $rating - $runtime
line4_default: $genres
icon: mdi:eye-off
What displays when visiting the API URL from the troubleshooting guide?
I see all the relevant XML from both my recently added TV Shows AND my recently added movies. The data is rather large for this post so I didn't include it in the post but it is attached as a zip file.
Does the default Home Assistant Plex component work for you?
Yes
Home Assistant Version
HA - 2024.8.1
Component version - 0.48
Additional Context
I have checked my component configs and verified that I have chosen the proper sections (movie, show) and proper library types (Movies, TV Shows). I deleted and re-added them and then reloaded the component but no change.
Hi @rpitera can you confirm that you have installed the correct plex integration repo to hacs? You should see the temporary warning message below in your main HACS screen:
Also, in HACS, when you look at the integration you're using, make sure you're using the following version. Yours should look identical:
If you dont see both of the images above in your HACS configuration, that means youre not using the correct repo and/or version. You will have to manually add the below repo to HACS before searching for and installing this integration.
https://github.com/custom-components/sensor.plex_recently_added
Let me know..
Hmmm... If you're not getting the archived message, it most likely means you originally installed UMC and Plex Integration many years ago. I think there might be something stuck/lingering in your configuration preventing it from working. This is especially true if you removed these components and added them back (as you mentioned above) and still don't see the archived warning messages.
This is what I would do if it were my PC...
1) Make a full backup of Home Assistant
2) Remove Plex Recently Added Integration instance from Settings/Devices (so it is no longer running)
3) Remove Plex Integration from HACS
4) Remove Upcoming Media Card from HACS
5) Remove Upcoming Media Card custom-cards/upcoming-media-card (plugin) and Plex Recently Added custom-components/sensor.plex_recently_added (integration) custom repos from HACS
6) Reboot Home Asssistant.
7) If you have access to your Home Assistant Config folders via SSH or Network Share, make sure to delete the 2 below folders and their contents if they still exist:
\config\custom_components\plex_recently_added
\config\www\community\upcoming-media-card
8) Reboot Home Assistant
9) Delete your web browser file and image cache completely. You don't have to delete passwords or autofill.
10) Add Upcoming Media Card custom-cards/upcoming-media-card (plugin) and Plex Recently Added custom-components/sensor.plex_recently_added (integration) custom repos back to HACS
11) Add and configure Plex Recently Added integration. Try using the default configuration for Plex Recently Added (which should add a TV
, Movies
, and a Global sensor
(global sensor includes both TV and Movies items together). If this resolves the issue great! If not, I would restore from your backup that you made on Step 1 since none of this made any difference.
Let me know what you get after following all these steps exactly. Good luck!
Thanks for the procedural; I was kinda thinking it might be something like that, This will take a bit as I'll have to find time to set aside this weekend so I can do it all in one sitting and feel comfortable with it. As soon as I have a result, I'll get back to you with my findings. I appreciate the quick response and detailed troubleshooting steps.
Well, that was a little nerve wracking to go through (even knowing I had a full VM backup that would be easy to revert)! But I followed the steps to the letter and it was worth it. Everything is working perfectly now and I'm getting proper data feeds to my cards. Thanks so much for your help! You can close this at your leisure; I wanted to leave it open unless you had any further comments. I think that your instincts were dead on and there was some old code cached in there somewhere that was causing this.
Well, that was a little nerve wracking to go through (even knowing I had a full VM backup that would be easy to revert)! But I followed the steps to the letter and it was worth it. Everything is working perfectly now and I'm getting proper data feeds to my cards. Thanks so much for your help! You can close this at your leisure; I wanted to leave it open unless you had any further comments. I think that your instincts were dead on and there was some old code cached in there somewhere that was causing this.
@rpitera glad you got it all working! Enjoy!