-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Trakt lists and widgets do not update after playing from local library #1282
Comments
How have you confirmed this? TMDBh does not scrobble trakt progress. |
I can look at my trakt account immediately after finishing an episode or movie and it shows that I just finished it. I can also look at the "next episodes" and "recently watched movies" trakt lists in other add-ons and it shows the episodes/movies I just finished. However, the "next episodes" and "recently watched movies" trakt lists within TMDBh do not immediately update with the episodes/movies I just finished. This only happens when the episodes/movies play from the Kodi library. When they play from add-ons, the "next episodes" and "recently watched movies" trakt lists within TMDBh update immediately when the episodes/movies are finished. |
I assume you're using the Kodi Trakt addon for scrobbling the library. This could be a timing issue with when it scrobbles the status vs. when Kodi refreshes the list when playback ends -- i.e. if the Trakt addon only scrobbles the watched status after playback stops (or very close to when it stops) then the TMDbH list will not have those details at the time Kodi refreshed the containers. You can confirm if it is a timing issue by doing a Plugins don't have much control over when they refresh. When containers refresh is controlled by Kodi and there's no way for a plugin to update items onscreen in real time. Once you see the items the plugin cannot change them further. The only way they get "updated" is if Kodi refreshes the container, in which case the old items are destroyed and entirely new items are created with the available data. A container refresh happens on playback start/stop, library update, reloadskin, or the container path changes |
I tried ReloadSkin() and it does not cause TMDBh to refresh trakt lists. However, I just discovered that disabling TMDBh and then re-enabling it does make it refresh trakt lists. So for some reason the trakt lists in TMDBh are either not refreshed when playback of local media finishes, or it's a timing issue like you said. But the only way I've been able to manually get the lists in TMDBh to refresh is by disabling it and then re-enabling. |
Describe the bug
I have widgets that show next episodes and recently watched movies from trakt lists in tmdbh. I also have tmdbh configured to play from the local library first, and revert to fen light if the item is not in the local library.
When I watch something that is in my local library, my widgets do not update when playback ends. For example, the next episode widget will still show the episode I just watched. I have confirmed that trakt immediately marks as watched, but tmdbh does not refresh trakt lists to show the update. It does eventually refresh, but it takes a long time.
This only happens with local media. If I watch something through fen light, the widgets update as soon as playback ends.
Steps To Reproduce
Debug log
No response
Screenshots and Additional Info
No response
Checklist
The text was updated successfully, but these errors were encountered: