Jump to content

Help troubleshooting Trakt.tv syncing.


GollyJer
Go to solution Solved by GollyJer,

Recommended Posts

GollyJer

I got my annual "What you've watched this year" email from Trakt and realized Emby hasn't been syncing with Trakt since August. :wacko:

 

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

zachattack83

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

GollyJer

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 by Jeremy Gollehon
Link to comment
Share on other sites

GollyJer

@@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 by Jeremy Gollehon
Link to comment
Share on other sites

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

  • Solution
GollyJer

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 by Jeremy Gollehon
Link to comment
Share on other sites

 

 

 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

GollyJer

Actually, it does look like the scheduled task should sync Emby and Trakt but it isn't happening for me... strange. :unsure:

 

[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 by Jeremy Gollehon
Link to comment
Share on other sites

 

 

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

GollyJer

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 by Jeremy Gollehon
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...