frankmb 41 Posted March 24, 2025 Posted March 24, 2025 I ran the Trakt plugin "Export Library to Trakt" task to check that everything is still working with trakt integration. From what I can see, it is working except for some episodes of "Real Time with Bill Maher" that Trakt is not able to match and set watched status. From the server log I see: 2025-03-24 17:29:07.897 Info Trakt: Episodes to set watched: 41 2025-03-24 17:29:09.017 Info HttpClient: POST https://api.trakt.tv/sync/history 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":9843645}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":9961841}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10075978}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10078993}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10079606}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10112446}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10136940}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10150418}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10150442}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10194339}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10256973}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10256974}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10314635}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10314636}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10314637}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10314639}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10413240}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10413241}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10413242}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10413243}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10413245}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10488652}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10506323}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10506324}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10506330}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10550314}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10567586}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10567592}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10568682}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10630146}} 2025-03-24 17:29:09.529 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10630147}} I manually checked a few episodes on TVDB and get these links https://www.thetvdb.com/series/real-time-with-bill-maher/episodes/9843645 https://www.thetvdb.com/series/real-time-with-bill-maher/episodes/9961841 https://www.thetvdb.com/series/real-time-with-bill-maher/episodes/10256974 https://www.thetvdb.com/series/real-time-with-bill-maher/episodes/10506324 https://www.thetvdb.com/series/real-time-with-bill-maher/episodes/10568682 https://www.thetvdb.com/series/real-time-with-bill-maher/episodes/10630147 Trakt has those episodes on their website but it can't find them based on thetvdb ids. Based on this forum post https://forums.trakt.tv/t/thetvdb-to-tvdb-migration-with-plex-scrobbler/12041 it looks like the primary metadata source for Trakt is now TMDB for example: https://www.themoviedb.org/tv/4419-real-time-with-bill-maher/season/22/episode/36 At this point I am thinking I probably need Emby to start using TMDB episode ids instead of thetvdb episode ids for the trakt plugin to work smoothly. Right now my Emby TV Show library metadata settings look like this: Do I understand the problem correctly? What should I do so that the Emby trakt plugin talks to Trakt using TheMovieDb (TMDB) episode ids?
Luke 42077 Posted March 24, 2025 Posted March 24, 2025 Hi what I would do is use the emby metadata editor to check the series and make sure the external ids are correct. Usually that will help resolve this.
frankmb 41 Posted March 25, 2025 Author Posted March 25, 2025 So Trakt was missing the TVDB ids for the episodes because TMDB was missing those ids (to TVDB). See: https://forums.trakt.tv/t/emby-plugin-cannot-set-watched-status-on-trakt-for-a-specific-show/51536 Will be fixed in TMDB so that Trakts imports the TVDB ids and then able to match what I send. Does Emby not store the TMDB ids? In the Emby Edit Metadata menu, the TVDB and IMDB ids can be edited but TMDB is missing. Even though I have TMDB active as a metadata downloader. Was is the primary metadata source for Emby?
Luke 42077 Posted March 25, 2025 Posted March 25, 2025 42 minutes ago, frankmb said: Was is the primary metadata source for Emby? I'll answer your question with a question. What metadata fetchers do you have enabled on your TV library?
frankmb 41 Posted March 25, 2025 Author Posted March 25, 2025 29 minutes ago, Luke said: I'll answer your question with a question. What metadata fetchers do you have enabled on your TV library? As posted above, both TVDB and TMDB for Series and Episode. Only TMDB for Season. I don't remember at all why the TVDB for Season is unchecked.
Luke 42077 Posted March 25, 2025 Posted March 25, 2025 OK well since you updated trakt by correcting values it sounds like that will help with this.
frankmb 41 Posted March 25, 2025 Author Posted March 25, 2025 Is there a way to make the TMDB episode ids what is sent to Trakt by the Emby trakt plugin since that is Trakt's data source?
Luke 42077 Posted March 25, 2025 Posted March 25, 2025 I’ll have to check but I think it sends both. 1
frankmb 41 Posted March 28, 2025 Author Posted March 28, 2025 (edited) I have been editing TMDB episode data on the https://www.themoviedb.org/ website to add the missing TVDB ids so that the Emby trakt plugin can add watched status and add to Collection for those episodes. I believe this problem is widespread since there is no guarantee on TMDB that the TVDB ids are included in episode data. Since Emby has a TMDB metadata downloader, I think the best solution would be that the Emby trakt plugin uses the TMDB ids as much as possible to identify episodes on trakt. Right now in my errors, it is only sending the TVDB ids and not the TMDB id. The first 2 error in the log do have multiple ids being sent but those must have a different problem thant the more common one where only TVDB is being sent and not matching in trakt. 2025-03-28 09:48:09.681 Info Server: http/1.1 POST http://host2:8096/emby/ScheduledTasks/Running/515a9565f7d0dfe5f375d92153f7c25d?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=8d368880-e61c-4e17-9cbb-00c5b04cbad2&X-Emby-Client-Version=4.8.11.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. Source Ip: host1, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 2025-03-28 09:48:09.682 Info TaskManager: Executing Export Library to Trakt 2025-03-28 09:48:09.682 Info Server: http/1.1 Response 204 to host1. Time: 1ms. POST http://host2:8096/emby/ScheduledTasks/Running/515a9565f7d0dfe5f375d92153f7c25d?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=8d368880-e61c-4e17-9cbb-00c5b04cbad2&X-Emby-Client-Version=4.8.11.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us 2025-03-28 09:48:09.682 Info Trakt: Syncing user data for Frank 2025-03-28 09:48:10.783 Info HttpClient: GET https://api.trakt.tv/sync/watched/movies 2025-03-28 09:48:12.567 Info HttpClient: GET https://api.trakt.tv/sync/collection/movies 2025-03-28 09:48:12.632 Info Trakt: Movies to add to collection: 0 2025-03-28 09:48:12.632 Info Trakt: Movies to remove from collection: 0 2025-03-28 09:48:12.632 Info Trakt: Movies to set watched: 0 2025-03-28 09:48:12.632 Info Trakt: Movies to set unwatched: 0 2025-03-28 09:48:13.733 Info HttpClient: GET https://api.trakt.tv/sync/watched/shows 2025-03-28 09:48:15.535 Info HttpClient: GET https://api.trakt.tv/sync/collection/shows 2025-03-28 09:48:16.464 Info Trakt: Episodes to add to Collection: 46 2025-03-28 09:48:17.565 Info HttpClient: POST https://api.trakt.tv/sync/collection 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"imdb":"tt0344651","tmdb":4381,"tvdb":73067}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"imdb":"tt9495224","tvdb":6959083}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10633144}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10810820}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10810821}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10810822}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10810823}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10810824}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10837532}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10837533}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10837534}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10847135}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10847136}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10847137}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10847138}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10847136}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10847137}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10847138}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10907181}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10917222}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10917223}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10917224}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10930212}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10930213}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10930214}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10930215}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10943323}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10943331}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10970819}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10970820}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10970822}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10970824}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":10970825}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":11021340}} 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"tvdb":11021344}} 2025-03-28 09:48:17.723 Info Trakt: Episodes to remove from Collection: 1 2025-03-28 09:48:18.823 Info HttpClient: POST https://api.trakt.tv/sync/collection/remove 2025-03-28 09:48:18.976 Info Trakt: Episodes to set watched: 3 2025-03-28 09:48:20.077 Info HttpClient: POST https://api.trakt.tv/sync/history 2025-03-28 09:48:20.208 Info Trakt: Episodes to set unwatched: 0 2025-03-28 09:48:20.208 Info TaskManager: Export Library to Trakt Completed after 0 minute(s) and 10 seconds Edited March 28, 2025 by frankmb
Luke 42077 Posted March 28, 2025 Posted March 28, 2025 Yea but look at this one in your log: Quote 2025-03-28 09:48:17.722 Error Trakt: TraktResponse episode not Found:{"ids":{"imdb":"tt0344651","tmdb":4381,"tvdb":73067}}
frankmb 41 Posted March 28, 2025 Author Posted March 28, 2025 Yes that is what I mentioned: 5 hours ago, frankmb said: The first 2 error in the log do have multiple ids being sent but those must have a different problem thant the more common one where only TVDB is being sent and not matching in trakt. The problem is with those that have only the TVDB ids. How can I make it add the TMDB ids?
Luke 42077 Posted March 28, 2025 Posted March 28, 2025 As far as I know episodes don't have unique ids on tmdb. They just go by series ids, and then season and episode number, unless something has changed.
frankmb 41 Posted March 28, 2025 Author Posted March 28, 2025 If that is the case, then why am I getting those errors from the Trakt plugin?
Luke 42077 Posted March 28, 2025 Posted March 28, 2025 because you have the tvdb id, so emby tries to use that, but trakt just doesn't have that id in their database. if you have no ids at all, then it will fallback to using the series ids + season and episode number. The problem with doing this though is that if you have any series that are not set to aired episode order, then you will see the wrong episodes reported to trakt. Solving that would require one of these three to happen: Tmdb will bend and start having a real episode id (maybe they do by now, I haven't checked the json in a while) Trakt will bend and update their api to take an additional param, which is the series order, so that we can pass the series ids, series order, season number and episode number Emby will bend and start storing the original episode number so that regardless of your series order, episodes can always be mapped back to original aired order. I don't really love this because it would make dealing with episodes much more complicated. 1
Luke 42077 Posted March 28, 2025 Posted March 28, 2025 Out of curiosity I checked moviedb's latest json and there is an episode id now. So that is good, although strangely their episode api's are still all based on season and episode number. Maybe it's a new thing. @Happy2Playhave you heard anything about this? Anyway, even if I update the moviedb plugin to start capturing this information, the next big question is going to be whether trakt actually uses it or not. All of their moviedb support might be based on season and episode numbers, since that is how moviedb has always functioned.
Luke 42077 Posted March 28, 2025 Posted March 28, 2025 I guess it's always been there, but Tmdb is resisting adding api's based on it: https://www.themoviedb.org/talk/552e997ac3a36804cd0013ab That's unfortunate because that puts the onus on the api consumer to know the episode order that moviedb is expecting.
Luke 42077 Posted March 28, 2025 Posted March 28, 2025 Quote We do not have any plans on introducing that as a query end point at this time. Episodes can be deleted and re-added (which would be a new id). Because of this, you can only query by the combination "season number" and "episode number". That is the public "id" if you will. The id is only useful when tracking changes via the changes API. This suggests that Emby should not store the tmdb episode id because it will cause problems if and when that id gets deleted. 1
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