Closed Toddy69 closed 10 years ago
Unfortunately uniqueIDs aren't used for sync, they aren't submitted to the APIs or returned from API calls when obtaining collection/watched information. Syncs are done by the shows tvdb_id, then season/episode arrays.
Only the watching/scrobble APIs use it, and even then its optional (but its used)
If that episode is S00E08, then the season should be 0 and episode 8, instead of season 13 and episode 5.
Oh, ok. I thought that scrobbling, watched and collected can all be transmitted with the same attributes.
I just started to use the new uniqueid feature in order to use my own order of episodes. When scrobbling, the plugin maps to the right episode on trakt.tv. When I sync my collection or watched status, the log says everything is up to date.
Some information about one of those episodes:
filename: Columbo - S13E05 - Die letzte Party.{avi, nfo} nfo-content (reduced)
These details are imported correctly. I have checked this directly in the database. The episode should map to S00E08 (Specials) on trakt.tv (http://trakt.tv/show/columbo/specials/episode/8).
While watching the episode, the scrobbling produces following log:
Since scrobbling works, it can be assumed, the library entry and uniqueid are correct. When syncing, the mapping via id is broken. I do not know python very well (I'm into C/C++/Java), but I could narrow it down to the function
compare_show(xbmc_show, trakt_show)
. I have enhanced the function with further debuginformation:and the result is
So it takes the else branch, but doesn't enter the for loop and the episode is not registered in missing. I think this method should first compare by unique id if available and by season/episode if not.
If you need a better debug log, provide a snippet with logging instruction, I will run it then.