Back in business. Thank you.
Unfortunately this is broken again in 0.92.2. I had to upgrade for the fix for the myQ component and it broke this one again. I see the following errors:
Run API method None.VideoLibrary.GetRecentlyAddedMovies({‘properties’: [‘art’, ‘dateadded’, ‘genre’, ‘playcount’, ‘premiered’, ‘rating’, ‘runtime’, ‘studio’, ‘title’]}) error: {‘code’: -32603, ‘message’: ‘Internal error.’}
kodi_recently_added: Error on device update!
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 261, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/app/homeassistant/helpers/entity.py”, line 375, in async_device_update
await self.async_update()
File “/config/custom_components/kodi_recently_added/sensor.py”, line 175, in async_update
self.data = result[‘movies’]
KeyError: ‘movies’
Run API method None.VideoLibrary.GetRecentlyAddedEpisodes({‘properties’: [‘art’, ‘dateadded’, ‘episode’, ‘fanart’, ‘firstaired’, ‘playcount’, ‘rating’, ‘runtime’, ‘season’, ‘showtitle’, ‘title’]}) error: {‘code’: -32603, ‘message’: ‘Internal error.’}
kodi_recently_added: Error on device update!
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 261, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/app/homeassistant/helpers/entity.py”, line 375, in async_device_update
await self.async_update()
File “/config/custom_components/kodi_recently_added/sensor.py”, line 116, in async_update
self.data = result[‘episodes’]
KeyError: ‘episodes’
Curious, I still haven’t upgraded to 0.92.x (plan to try it out this weekend). I can confirm it’s still working ok on 0.91.x. I released a new version that adds some additional logging when it can’t find the movies or episodes key. Could you try upgrading and pasting in any additional logging that happens?
Here is what is in the log…
Run API method None.VideoLibrary.GetRecentlyAddedMovies({‘properties’: [‘art’, ‘dateadded’, ‘genre’, ‘playcount’, ‘premiered’, ‘rating’, ‘runtime’, ‘studio’, ‘title’]}) error: {‘code’: -32603, ‘message’: ‘Internal error.’}
Unexpected result while fetching movies: {‘code’: -32603, ‘message’: ‘Internal error.’}
Traceback (most recent call last):
File “/config/custom_components/kodi_recently_added/sensor.py”, line 181, in async_update
self.data = result[‘movies’]
KeyError: ‘movies’
Run API method None.VideoLibrary.GetRecentlyAddedEpisodes({‘properties’: [‘art’, ‘dateadded’, ‘episode’, ‘fanart’, ‘firstaired’, ‘playcount’, ‘rating’, ‘runtime’, ‘season’, ‘showtitle’, ‘title’]}) error: {‘code’: -32603, ‘message’: ‘Internal error.’}
Unexpected result while fetching tv shows: {‘code’: -32603, ‘message’: ‘Internal error.’}
Traceback (most recent call last):
File “/config/custom_components/kodi_recently_added/sensor.py”, line 117, in async_update
self.data = result[‘episodes’]
KeyError: ‘episodes’
You’ll have to look at your kodi logs as it’s an internal error coming from kodi itself. Maybe restarting it will resolve things?
Yep that was it. Weird. Thanks.
this is a great add-on, thankyou for sharing.
I wonder if anyone experiences a bit of lag on the lovelace page when scrolling up and down through the upcoming shows? I have about 20 different items in my lists in total, so maybe this is too much?
Try the latest version and see if it helps and let me know. Sorry for the late reply, this one slipped past me.
Update v0.3.8:
Couple of bug fixes thanks to reports from @derekleeds, should improve performance. Will be back working on this project again with the ultimate plan being a complete rewrite. This was my first project here and really needs redone.
Update v0.3.9:
- Add hide_flagged and hide_unflagged to hide items with or without the flag indicator.
- Add hide_empty to hide the card completely if there are no items to display.
Hi, I’m using HA 0.93.2 and the latest radarr_upcoming_media (0.2.8).
If I add the sensor to my config, HA does not load the Web UI anymore and it is stuck in the log:
Setup of platform radarr_upcoming_media is taking over 10 seconds.
sonarr_upcoming_media is working fine.
I have played with both days and max parameters, but no change.
No other errors other than the “taking over 10 seconds”? When commenting out or removing radarr_upcoming_media your system boots fine?
No, not even if I set Logger to DEBUG level.
I checked the sensor.py code, and it does not have many Logger entries, so it cannot output more than you have implemented
When I remove the Radarr sensor from my config, it works fine.
Could it be the size of my Radarr library? I have over 500 in there.
I don’t believe the size of your library would be an issue, as long as you haven’t set the max to be in the hundreds (default is 5). Have you tried the steps in the troubleshooting guide particularly the portion to connect to the API manually? Can you connect to it okay?
Sorry mayker, all my fault. My server had 2 IPv6 addresses assigned, thus even a ping6 was not possible. So it hang during the TMDB lookups. It is working now!
I’m using the Kodi recently added component. I’m having an issue with the artwork displaying. It works fine when I originally scan a movie into my library but if I rescan or reload the artwork the artwork used doesn’t get displayed anymore. The other details of the movie are displayed. I can see in the sensor that the details are in there though. Any ideas? I’m using mysql database for my library
Could be related to this open issue for the kodi component. Might be worth sharing info there or creating a new issue. There’s also a note at the bottom of the kodi components readme that might be related:
NOTE: This component can currently only load images from an external URL. Links to a nfs or samba share or local media will not work with this custom component.
This has now been fixed by the developer of the kodi plugin
my upcoming TV is blank any one know how to fixed. I use the Custom Components - custom_updater. so its up to date