Jump to content

Trakt - Sync library to trakt.tv bug


tr0nllam

Recommended Posts

tr0nllam

When "sync library to trakt.tv" runs as scheduled, it will remove the watched history of a movie/tv episode on trakt.tv if it is listed as unwatched in Emby. So, if I add a new movie or tv episode and don't run the "import playstates from trakt.tv," the sync library task will remove that movie or tv episode from my trakt history.

 

I'm assuming that is not how the plug-in is supposed to work, especially since none of the options in the configuration seem to have any affect on this behavior.

 

Here is the log of the sync library to trakt task:

 

2016-05-03 03:00:38.2382 Info HttpServer: HTTP POST https://localhost:8920/emby/ScheduledTasks/Running/b1a52e63d5fb09335557d4f1e6402299. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0
2016-05-03 03:00:38.2952 Info TaskManager: Executing Sync library to trakt.tv
2016-05-03 03:00:38.3532 Info Trakt: 11079 Items found for 'Brandon'.
2016-05-03 03:00:38.3532 Info HttpClient: HttpClientManager GET: https://api-v2launch.trakt.tv/sync/watched/movies
2016-05-03 03:00:38.3602 Info HttpServer: HTTP Response 204 to ::1. Time: 122ms. https://localhost:8920/emby/ScheduledTasks/Running/b1a52e63d5fb09335557d4f1e6402299
2016-05-03 03:00:38.3982 Info HttpServer: HTTP GET https://localhost:8920/emby/ScheduledTasks?isHidden=false. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0
2016-05-03 03:00:38.3982 Info HttpServer: HTTP Response 200 to ::1. Time: 1ms. https://localhost:8920/emby/ScheduledTasks?isHidden=false
2016-05-03 03:00:40.4744 Info HttpClient: HttpClientManager GET: https://api-v2launch.trakt.tv/sync/collection/movies?extended=metadata
2016-05-03 03:00:43.3245 Info Trakt: Movies to add to Collection: 1
2016-05-03 03:00:43.3245 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/sync/collection
2016-05-03 03:00:44.5366 Info Trakt: Movies to set watched: 2
2016-05-03 03:00:44.5366 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/sync/history
2016-05-03 03:00:44.7636 Info Trakt: Movies to set unwatched: 1
2016-05-03 03:00:44.7636 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/sync/history/remove
2016-05-03 03:00:45.1606 Error Trakt: Error updating movie play states
    *** Error Report ***
    Version: 3.0.5949.0
    Command line: C:\Users\Brandon\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
    Processor count: 8
    64-Bit OS: True
    64-Bit Process: True
    Program data path: C:\Users\Brandon\AppData\Roaming\MediaBrowser-Server
    Application Path: C:\Users\Brandon\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
    Object reference not set to an instance of an object.
    System.NullReferenceException
       at Trakt.ScheduledTasks.SyncLibraryTask.LogTraktResponseDataContract(TraktSyncResponse dataContract)
       at Trakt.ScheduledTasks.SyncLibraryTask.<SyncUserLibrary>d__23.MoveNext()
    
2016-05-03 03:00:45.1606 Info HttpClient: HttpClientManager GET: https://api-v2launch.trakt.tv/sync/watched/shows
2016-05-03 03:00:46.2537 Info HttpClient: HttpClientManager GET: https://api-v2launch.trakt.tv/sync/collection/shows?extended=metadata
2016-05-03 03:01:13.3212 Info Trakt: Episodes to add to Collection: 7
2016-05-03 03:01:13.3212 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/sync/collection
2016-05-03 03:01:13.6723 Error Trakt: TraktResponse not Found:{"ids":{"imdb":"tt1587678","tvdb":167571}}
2016-05-03 03:01:13.6723 Error Trakt: TraktResponse not Found:{"ids":{"imdb":"tt0176095","tvdb":70870}}
2016-05-03 03:01:13.6723 Error Trakt: TraktResponse not Found:{"ids":{"imdb":"tt0176095","tvdb":70870}}
2016-05-03 03:01:13.6723 Error Trakt: TraktResponse not Found:{"ids":{"tvdb":4303611}}
2016-05-03 03:01:13.6723 Error Trakt: TraktResponse not Found:{"ids":{"tvdb":2046441}}
2016-05-03 03:01:13.6723 Info Trakt: Episodes to set watched: 2
2016-05-03 03:01:13.6723 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/sync/history
2016-05-03 03:01:14.1933 Error Trakt: TraktResponse not Found:{"ids":{"tvdb":4303611}}
2016-05-03 03:01:14.1933 Error Trakt: TraktResponse not Found:{"ids":{"tvdb":2046441}}
2016-05-03 03:01:14.1933 Info Trakt: Episodes to set unwatched: 0
2016-05-03 03:01:14.1933 Info TaskManager: Sync library to trakt.tv Completed after 0 minute(s) and 35 seconds

Link to comment
Share on other sites

The two sync operations are both one-way, so yes i think that is how the plugin was designed. To prevent that from happening, make sure the import playstates operation is running on a regular basis.

Link to comment
Share on other sites

tr0nllam

The two sync operations are both one-way, so yes i think that is how the plugin was designed. To prevent that from happening, make sure the import playstates operation is running on a regular basis.

 

I assumed "Sync library to trakt" was supposed to merely update that you have that piece of media in your collection (which it does) and not erase that you have ever watched that piece of media.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...