joshyz73 0 Posted March 19, 2021 Posted March 19, 2021 Sometime in the last month or so, my playstates for videos stopped syncing to Trakt. My logs are full of entries like in the attached file. Nowhere do I get an indication that my Trakt account is locked, and I'm told it isn't. I've tried removing the Trakt plugin are re-installing, and re-getting a PIN. Nothing is working to correct the issue. I saw that someone recently indicated that Trakt was reporting there were too many connections, but I have the updated plugin that resolves that. embyserver.txt
Luke 42077 Posted March 21, 2021 Posted March 21, 2021 Hi there, can you please go over an example? Thanks.
joshyz73 0 Posted March 22, 2021 Author Posted March 22, 2021 On 3/20/2021 at 10:17 PM, Luke said: Hi there, can you please go over an example? Thanks. Really, no example. Nothing at all has been updating on Trakt for a month or so, and when I click on the "Sync library to trakt.tv" scheduled task, it completes, but then I get a bunch of the log entries like I originally attached.
Luke 42077 Posted March 22, 2021 Posted March 22, 2021 Even still, can you please provide discussion of a single example that we can focus on? Thanks !
joshyz73 0 Posted March 22, 2021 Author Posted March 22, 2021 Biggest one (that I can tell) right now is Walker. On Trakt, it shows the last episode watched was 3 episodes ago, watched on March 6th. There have been 2 episodes watched since then, and they show as watched in Emby.
Luke 42077 Posted March 23, 2021 Posted March 23, 2021 5 hours ago, joshyz73 said: Biggest one (that I can tell) right now is Walker. On Trakt, it shows the last episode watched was 3 episodes ago, watched on March 6th. There have been 2 episodes watched since then, and they show as watched in Emby. In the log file you provided, what time was Walker watched?
ulTimaS 0 Posted March 23, 2021 Posted March 23, 2021 (edited) I've had the same issues with 'Drive to Survive' S3 and 'Shameless US' S11. What I found out is that the plugin uses the tvdbid of the episode and tries to sync it to trakt, the problem here is that trakt itself is missing the tvdbid of the episode thus will not sync it. Your last watched episode is probably episode 3 of 'Walker' since that's the last one with a tvdbid on trakt.tv. Those episodes do have a TMDB id, but Emby doesn't register those on episode level (as far as I can tell) Edited March 23, 2021 by ulTimaS
ulTimaS 0 Posted March 23, 2021 Posted March 23, 2021 (edited) If I retrieve an episode with the Trakt API this is what I get for Shameless (US) for example: S11E05 which DOES have a tvdbid and syncs fine with trakt. https://api.trakt.tv/shows/shameless-2011/seasons/11/episodes/5 { "season": 11, "number": 5, "title": "Slaughter", "ids": { "trakt": 4634898, "tvdb": 8072841, "imdb": "tt13389224", "tmdb": 2565320, "tvrage": {} } } S11E06 which DOES NOT have a tvdbid and does not sync properly: https://api.trakt.tv/shows/shameless-2011/seasons/11/episodes/6 { "season": 11, "number": 6, "title": "Do Not Go Gentle Into That Good....Eh, Screw It", "ids": { "trakt": 4806976, "tvdb": {}, "imdb": {}, "tmdb": 2722224, "tvrage": {} } } I'm not sure how how the traktplugin for Emby works exactly, but my guess is that it can't find the episode at trakt.tv so it will not sync. So the issue is that Trakt.tv is not always up-to-date with the tvdb id's. This is in the Emby log when I try to sync: 2021-03-23 11:02:52.259 Info Trakt: Episodes to set watched: 25 2021-03-23 11:02:52.261 Debug Trakt: POST { "shows": [], "episodes": [ { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228452 } }, // Drive to survive s03e01 { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228453 } }, // s03e02 { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228454 } }, // etc. { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228455 } }, { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228456 } }, { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228457 } }, { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228458 } }, { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228459 } }, { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228460 } }, { "watched_at": "2021-03-23T09:01:10Z", "ids": { "tvdb": 8228461 } }, { "watched_at": "2021-03-17T16:03:07Z", "ids": { "tvdb": 8113683 } }, // This one is Shameless s11e06 { "watched_at": "2021-03-17T16:03:09Z", "ids": { "tvdb": 8113684 } }, // s11e07 { "watched_at": "2021-03-23T08:32:30Z", "ids": { "tvdb": 8113687 } }, // s11e08 { "watched_at": "2018-11-06T09:56:56Z", "ids": { "tvdb": 6725812 } }, // I think the rest is Tokyo Ghoul { "watched_at": "2018-11-06T09:56:56Z", "ids": { "tvdb": 6827309 } }, { "watched_at": "2018-11-06T09:56:56Z", "ids": { "tvdb": 6827310 } }, { "watched_at": "2018-11-06T09:56:56Z", "ids": { "tvdb": 6827312 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827314 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827315 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827316 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827318 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827319 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827320 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827321 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827324 } } ] } 2021-03-23 11:02:52.262 Info HttpClient: POST https://api.trakt.tv/sync/history 2021-03-23 11:02:52.873 Info HttpClient: POST https://api.trakt.tv/sync/history 2021-03-23 11:02:53.483 Info HttpClient: POST https://api.trakt.tv/sync/history 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Added Movies: 0 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Added Shows: 0 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Added Seasons: 0 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Added Episodes: 12 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Deleted Movies: 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Deleted Shows: 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Deleted Seasons: 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Deleted Episodes: 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Existing Movies: 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Existing Shows: 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Existing Seasons: 2021-03-23 11:02:54.126 Debug Trakt: TraktResponse Existing Episodes: 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Error Trakt: TraktResponse not Found:{} 2021-03-23 11:02:54.126 Info Trakt: Episodes to set unwatched: 0 2021-03-23 11:02:54.126 Debug TaskManager: Sync library to trakt.tv Completed after 0 minute(s) and 9 seconds Edited March 24, 2021 by ulTimaS
ulTimaS 0 Posted March 25, 2021 Posted March 25, 2021 (edited) According to trakt.tv they use TMDB as their main source for metadata https://support.trakt.tv/knowledgebase/articles/1967838-how-does-movie-tv-show-information-metadata-ge https://support.trakt.tv/knowledgebase/articles/151225-how-do-i-add-a-missing-tv-show edit: Apparently they are transitioning to TMDB since the beginning of this year https://blog.trakt.tv/tmdb-transition-ef3d19a5cf24 edit2: I just checked how the Kodi trakt plugin does it and it doesn't use an episode ID, but rather they sync the whole show with nested seasons and episodes like so: { "shows": [ { "title": "Formula 1: Drive to Survive", "ids": { "unknown": "359913", "tvdb": "359913", "tmdb": "87083", "imdb": "tt8289930", "slug": "formula-1-drive-to-survive", "trakt": "144377" }, "year": 2019, "seasons": [ { "number": 3, "episodes": [ { "number": 1, "title": "3x01. Cash Is King", "ids": {}, "watched_at": "2021-03-25 13:30:26+00:00", "collected_at": "2021-03-19 10:47:45+00:00", "runtime": 2280, "rating": 0 } ] } ] } ] } This did update my trakt history. Edited March 26, 2021 by ulTimaS
Luke 42077 Posted March 27, 2021 Posted March 27, 2021 Please try version 3.4.7 of the Trakt plugin and see how that compares. Thanks !
ulTimaS 0 Posted March 27, 2021 Posted March 27, 2021 Tried it, but it made no difference. I'm on 3.4.7.0 now (which supports TMDB now?), but the sync still only uses the tvdbid: 2021-03-27 23:32:25.007 Info Trakt: Episodes to set watched: 13 2021-03-27 23:32:25.009 Debug Trakt: POST { "shows": [], "episodes": [ { "watched_at": "2021-03-27T22:29:33Z", "ids": { "tvdb": 8172728 } }, { "watched_at": "2018-11-06T09:56:56Z", "ids": { "tvdb": 6725812 } }, { "watched_at": "2018-11-06T09:56:56Z", "ids": { "tvdb": 6827309 } }, { "watched_at": "2018-11-06T09:56:56Z", "ids": { "tvdb": 6827310 } }, { "watched_at": "2018-11-06T09:56:56Z", "ids": { "tvdb": 6827312 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827314 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827315 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827316 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827318 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827319 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827320 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827321 } }, { "watched_at": "2018-12-29T16:31:35Z", "ids": { "tvdb": 6827324 } } ] } 2021-03-27 23:32:25.009 Info HttpClient: POST https://api.trakt.tv/sync/history 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Added Movies: 0 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Added Shows: 0 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Added Seasons: 0 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Added Episodes: 12 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Deleted Movies: 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Deleted Shows: 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Deleted Seasons: 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Deleted Episodes: 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Existing Movies: 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Existing Shows: 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Existing Seasons: 2021-03-27 23:32:25.461 Debug Trakt: TraktResponse Existing Episodes: 2021-03-27 23:32:25.461 Error Trakt: TraktResponse not Found:{} 2021-03-27 23:32:25.461 Info Trakt: Episodes to set unwatched: 0 2021-03-27 23:32:25.461 Debug TaskManager: Sync library to trakt.tv Completed after 0 minute(s) and 4 seconds Emby also doesn't include a tmdbid in the metadata of the episode so I'm not sure from where the plugin should get it from to use with the trakt api.
joshyz73 0 Posted March 29, 2021 Author Posted March 29, 2021 On 3/22/2021 at 8:54 PM, Luke said: In the log file you provided, what time was Walker watched? It wasn't watched in that log snippet. It had been watched days prior, and wasn't syncing. I ran the scheduled tasks for Trakt manually, generating that log bit. Seeing the stuff from ulTimaS, it's looking like a deeper rabbit hole now.
Luke 42077 Posted March 29, 2021 Posted March 29, 2021 On 3/27/2021 at 6:43 PM, ulTimaS said: Emby also doesn't include a tmdbid in the metadata of the episode so I'm not sure from where the plugin should get it from to use with the trakt api. We do, if that value is in your server metadata. Is it?
ulTimaS 0 Posted March 30, 2021 Posted March 30, 2021 (edited) 15 hours ago, Luke said: We do, if that value is in your server metadata. Is it? I do have it selected on my server, but if I look at the metadata on the episode itself it doesn't show a TMDB id unless it's a hidden one. library settings: individual episode (shameless s11e10): Edited March 30, 2021 by ulTimaS
Luke 42077 Posted March 30, 2021 Posted March 30, 2021 Ok please try the 3.4.8 plugin update. Thanks.
ulTimaS 0 Posted March 30, 2021 Posted March 30, 2021 (edited) 58 minutes ago, Luke said: Ok please try the 3.4.8 plugin update. Thanks. Awesome! From my quick test I can say that it works now. I see it is doing it per show now with nested seasons and episodes. Maybe @joshyz73can test it as well just to be sure. Edited March 30, 2021 by ulTimaS
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now