GollyJer 17 Posted December 26, 2019 Share Posted December 26, 2019 I got my annual "What you've watched this year" email from Trakt and realized Emby hasn't been syncing with Trakt since August. I made sure I'm using the newest version... 3.4... and updated the plugin with a new trakt api key... still not syncing. How can I troubleshoot this? Thanks! Jeremy Link to comment Share on other sites More sharing options...
Luke 37060 Posted December 27, 2019 Share Posted December 27, 2019 Hi there, please discuss an example and attach the information requested in how to report a problem: https://emby.media/community/index.php?/topic/790-how-to-report-a-problem/?view=getnewpost Thanks ! Link to comment Share on other sites More sharing options...
zachattack83 3 Posted January 2, 2020 Share Posted January 2, 2020 I was having issues with trakt syncing.I went to trakt.tv, then to my user settings -> connected apps, and deleted emby.I then went to emby -> plugins -> trakt and clicked the get pin and reauthorized it. It seems to have fixed it.I believe my error came from having one trakt account linked to multiple emby users. I know only have it linked to my admin account. I use it for the collection and api, moreso than watched status, so it doesn't bother me much. Link to comment Share on other sites More sharing options...
GollyJer 17 Posted January 2, 2020 Author Share Posted January 2, 2020 (edited) zackattack, thanks for the response! Does Emby show up in Connected Apps in trakt.tv settings after re-establishing with a new pin? I don't see it there after following your instructions. Edited January 2, 2020 by Jeremy Gollehon Link to comment Share on other sites More sharing options...
zachattack83 3 Posted January 3, 2020 Share Posted January 3, 2020 Yes, it should once its reconnected. Link to comment Share on other sites More sharing options...
GollyJer 17 Posted January 3, 2020 Author Share Posted January 3, 2020 (edited) @@Luke I've reconnected the Emby API a few times and am still having the issue. Here's an error from the log file. It looks like I'm unauthorized (line 20) even though I have successfully set up the API connection? 2020-01-03 00:21:15.398 Info Trakt: Playback Stopped 2020-01-03 00:21:15.398 Info Trakt: Item is played. Scrobble 2020-01-03 00:21:15.398 Info HttpClient: POST https://api.trakt.tv/oauth/token 2020-01-03 00:21:15.441 Info HttpServer: HTTP GET http://192.168.1.5:10013/emby/Users/52bf99955a1b4804bacbf5062cd61c06/Items/1997. UserAgent: Emby-Kodi/4.1.19 2020-01-03 00:21:15.445 Info HttpServer: HTTP Response 200 to 192.168.1.201. Time: 4ms. http://192.168.1.5:10013/emby/Users/52bf99955a1b4804bacbf5062cd61c06/Items/1997 2020-01-03 00:21:16.073 Info HttpClient: POST https://api.trakt.tv/oauth/token 2020-01-03 00:21:16.695 Info HttpClient: POST https://api.trakt.tv/oauth/token 2020-01-03 00:21:16.816 Error Trakt: Exception handled sending status update *** Error Report *** Version: 4.3.1.0 Command line: C:\Users\Jeremy\Desktop\HTPC_Apps\Emby_Portable\system\EmbyServer.dll -noautorunwebapp Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///C:/Users/Jeremy/Desktop/HTPC_Apps/Emby_Portable/system/System.Private.CoreLib.dll Processor count: 4 Program data path: C:\Users\Jeremy\Desktop\HTPC_Apps\Emby_Portable\programdata Application directory: C:\Users\Jeremy\Desktop\HTPC_Apps\Emby_Portable\system MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod) at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod) at Trakt.Api.TraktApi.<>c__DisplayClass34_0.<<PostToTrakt>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Trakt.Api.TraktApi.Retry[T](Func`1 function) at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser) at Trakt.Api.TraktApi.RefreshUserAuth(TraktUser traktUser) at Trakt.Api.TraktApi.SetRequestHeaders(HttpRequestOptions options, TraktUser traktUser) at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser) at Trakt.Api.TraktApi.SendEpisodeStatusUpdateAsync(Episode episode, MediaStatus status, TraktUser traktUser, Single progressPercent) at Trakt.ServerMediator.KernelPlaybackStopped(Object sender, PlaybackStopEventArgs e) Source: Emby.Server.Implementations TargetSite: Void MoveNext() Edited January 3, 2020 by Jeremy Gollehon Link to comment Share on other sites More sharing options...
Luke 37060 Posted January 3, 2020 Share Posted January 3, 2020 Try shutting down the server and deleting the trakt config file as others have mentioned, then start back up and go through the process again. Thanks. Link to comment Share on other sites More sharing options...
Solution GollyJer 17 Posted January 3, 2020 Author Solution Share Posted January 3, 2020 (edited) Actually, no one had mentioned that... and it worked. Thanks! For future searches... Shut down Emby Server. Go to programdata\plugins\configurations Delete the Trakt.xml file. Fire the server back up and reassociate the Trakt.tv Plugin with your account. @@Luke. Is there a way for me to sync my historical watch history from Emby to Trakt to fill in the past 6 months of missing data? Edited January 3, 2020 by Jeremy Gollehon Link to comment Share on other sites More sharing options...
Luke 37060 Posted January 5, 2020 Share Posted January 5, 2020 Thanks for the feedback ! Link to comment Share on other sites More sharing options...
Luke 37060 Posted January 5, 2020 Share Posted January 5, 2020 from Emby to Trakt to fill in the past 6 months of missing data? I'm not a Trakt user myself but don't the scheduled tasks created by the plugin do that? I thought they did. You just have to run them manually whenever you need to. Link to comment Share on other sites More sharing options...
GollyJer 17 Posted January 6, 2020 Author Share Posted January 6, 2020 (edited) Actually, it does look like the scheduled task should sync Emby and Trakt but it isn't happening for me... strange. [EDIT] Not so strange... this actually happened to me before... Help updating trakt.tv Watched status history? I'm now wishing Emby would keep watched status around even though the item is deleted. [/EDIT] Edited January 6, 2020 by Jeremy Gollehon Link to comment Share on other sites More sharing options...
Luke 37060 Posted January 6, 2020 Share Posted January 6, 2020 I'm now wishing Emby would keep watched status around even though the item is deleted. We do. Link to comment Share on other sites More sharing options...
GollyJer 17 Posted January 7, 2020 Author Share Posted January 7, 2020 (edited) So now I'm wishing the Trakt plugin would use the full Emby database history instead of just using the status of shows that haven't been deleted... I guess? Where is the best place for plugin feature requests? Edited January 7, 2020 by Jeremy Gollehon Link to comment Share on other sites More sharing options...
Luke 37060 Posted January 9, 2020 Share Posted January 9, 2020 Right OK, the trakt plugin won't use that, no, and that would require a decent amount of core work first in order to make that possible. But feature requests are always welcome: https://emby.media/community/index.php?/forum/98-feature-requests/ Thanks. Link to comment Share on other sites More sharing options...
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