umbrellaplug / umbrellaplug.github.io

Umbrella Kodi Addon Official
110 stars 17 forks source link

[BUG] Some Series show up as unwatched from Trakt Collection #305

Closed Mogulman12 closed 10 months ago

Mogulman12 commented 11 months ago

Bug

Intermittently, I've noticed some series/seasons don't show up as watched in Umbrella with Trakt integration. This has been happening for quite a while (6-12 months). The same series on other Kodi plug-ins do show up as watched.
Latest example of this is the show. Dr. Pimple Popper. There are 9 seasons. All of the episodes and seasons are watched in Trakt. Verified on the Trakt website (100% watched). When I go into Umbrella, and select Dr. Pimple Popper, and go to Season 1. It shows all the episodes watched, but the season is not watched.

I've reinstalled Umbrella on different devices and get the same behavior. I've tried resyncing Trakt, reauthorizing trakt.

In the attached log, I went to season 1 and marked "watched" it Trakt. Then I went into Season 2, and marked watched in Trakt. Yet I still see the season as unwatched even though all the episodes are watched. I didn't see any unwatched specials either.

https://paste.kodi.tv/ocapihubag [2023-08-01 09:25:18] [ plugin.video.umbrella: DEBUG ]: From func name: resources.lib.modules.trakt.sync_watchedProgress() Line # :1531 msg : Trakt Progress List Sync Update...(local db latest "list_cached_at" = 1690861278, trakt api latest "progress_activity" = 1690902590) [2023-08-01 09:25:18] [ plugin.video.umbrella: DEBUG ]: From func name: resources.lib.modules.trakt.sync_user_lists() Line # :1587 msg : Trakt User Lists Sync Update...(local db latest "lists_updatedat" = 72000, trakt api latest "lists_updatedat" = 1493688601) [2023-08-01 09:25:18] [ plugin.video.umbrella: DEBUG ]: From func name: resources.lib.modules.trakt.sync_liked_lists() Line # :1614 msg : Trakt Liked Lists Sync Update...(local db latest "liked_at" = 72000, trakt api latest "liked_at" = 1493688601) [2023-08-01 09:25:38] [ plugin.video.umbrella: WARNING ]: getTrakt() (404:NOT FOUND): URL=(https://api.trakt.tv/shows/tt8564914/progress/watched?specials=false&hidden=false): [2023-08-01 09:25:50] [ plugin.video.umbrella: WARNING ]: getTrakt() (404:NOT FOUND): URL=(https://api.trakt.tv/shows/tt8564914/progress/watched?specials=false&hidden=false):

Expected Result

I'd expect the seasons of this show to show as watched if all episodes are watched. If all seasons are watched, then the series should show as watched.

Steps To Reproduce

Add Dr. Pimple Popper to a collection. Mark season 1 as watched using Trakt See if you still see season 1 as being watched or unwatched even though all the episodes are watched. If I am within the series Dr. Pimple Popper within Umbrella, and use the left panel to view only unwatched, it shouldn't show season 1, but it doesn.

Kodi Version, Type of Device, Logs, Screenshots, and Additional Info

Kodi 20.2 (but this has been happening for a long time). Latest version of umbrella.

https://paste.kodi.tv/ocapihubag

[2023-08-01 09:25:18] [ plugin.video.umbrella: DEBUG ]: From func name: resources.lib.modules.trakt.sync_watchedProgress() Line # :1531 msg : Trakt Progress List Sync Update...(local db latest "list_cached_at" = 1690861278, trakt api latest "progress_activity" = 1690902590) [2023-08-01 09:25:18] [ plugin.video.umbrella: DEBUG ]: From func name: resources.lib.modules.trakt.sync_user_lists() Line # :1587 msg : Trakt User Lists Sync Update...(local db latest "lists_updatedat" = 72000, trakt api latest "lists_updatedat" = 1493688601) [2023-08-01 09:25:18] [ plugin.video.umbrella: DEBUG ]: From func name: resources.lib.modules.trakt.sync_liked_lists() Line # :1614 msg : Trakt Liked Lists Sync Update...(local db latest "liked_at" = 72000, trakt api latest "liked_at" = 1493688601) [2023-08-01 09:25:38] [ plugin.video.umbrella: WARNING ]: getTrakt() (404:NOT FOUND): URL=(https://api.trakt.tv/shows/tt8564914/progress/watched?specials=false&hidden=false): [2023-08-01 09:25:50] [ plugin.video.umbrella: WARNING ]: getTrakt() (404:NOT FOUND): URL=(https://api.trakt.tv/shows/tt8564914/progress/watched?specials=false&hidden=false):

Checklist

Mogulman12 commented 11 months ago

Seems like maybe the IMDB ID is incorrect. If I search for Dr. Pimple Popper in IMDB, I see tt6045142. Maybe it changed or something? Trakt is using the TT6045142 id not the other one?

Fen uses TMDB ID=80991 and TVDB ID=340489. Both of those seem to be correct.

Mogulman12 commented 11 months ago

Errr...If I do a trakt search I can find it using tt8564914. Not sure why it's failing using the api. Or maybe something else is not working. Tried to scour through the Kodi logs and Umbrella logs, but its hard to follow.

umbrellaplug commented 11 months ago

TMDB ID is: 80991 Trakt ID appears to be: 126690 IMDB ID is: tt6045142

Not sure if there's something weird with that one or not. I will try to follow your steps to re-produce the issue and see if I can track it down.

umbrellaplug commented 11 months ago

Are you using any skins?

Mogulman12 commented 11 months ago

Default (no skins).

umbrellaplug commented 10 months ago

Please let me know if this is still happening in the latest version.

Mogulman12 commented 10 months ago

Still happening on 6.6.28. Here are some pics. You can see all the episodes in season 1 are watched. But the season shows as unwatched. If I try and mark watched, an episode in season 1, I get the error above.
20230821_094500 20230821_094452

umbrellaplug commented 10 months ago

Can you try the latest test version? I've made changes that should resolve your issue. You likely will need to clear all cache.

Mogulman12 commented 10 months ago

Where is the test repo located at?

umbrellaplug commented 10 months ago

https://umbrellaplug.github.io/umbrellatest

Mogulman12 commented 10 months ago

Seems to be working. Installed new version. Cleared cache and synced with trakt. Tried marking watched and unwatched and also waiting 45 mins to see if an automated sync would cause problems. All seems good.

Mogulman12 commented 10 months ago

Just need to put it in the main build

umbrellaplug commented 10 months ago

Thanks for testing that out and being patient for the long wait to look at this. It's caused by an extremely hard to find bug where season imdb ids were replacing show imdb ids in rare instances. I'm currently working on a couple of features once I complete those I will push this fix with those features in the next update.