Jump to content


Photo

Help troubleshooting Trakt.tv syncing.

trakt

Best Answer Jeremy Gollehon , 03 January 2020 - 03:31 PM

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?

Go to the full post


  • Please log in to reply
13 replies to this topic

#1 Jeremy Gollehon OFFLINE  

Jeremy Gollehon

    Advanced Member

  • Members
  • 48 posts
  • Local time: 11:30 AM

Posted 26 December 2019 - 07:56 PM

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



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153210 posts
  • Local time: 12:30 PM

Posted 26 December 2019 - 10:00 PM

Hi there, please discuss an example and attach the information requested in how to report a problem:
https://emby.media/c...view=getnewpost
Thanks !

#3 zachattack83 OFFLINE  

zachattack83

    Advanced Member

  • Members
  • 131 posts
  • Local time: 11:30 AM

Posted 01 January 2020 - 09:04 PM

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.



#4 Jeremy Gollehon OFFLINE  

Jeremy Gollehon

    Advanced Member

  • Members
  • 48 posts
  • Local time: 11:30 AM

Posted 02 January 2020 - 07:57 PM

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, 02 January 2020 - 07:57 PM.


#5 zachattack83 OFFLINE  

zachattack83

    Advanced Member

  • Members
  • 131 posts
  • Local time: 11:30 AM

Posted 02 January 2020 - 11:27 PM

Yes, it should once its reconnected.



#6 Jeremy Gollehon OFFLINE  

Jeremy Gollehon

    Advanced Member

  • Members
  • 48 posts
  • Local time: 11:30 AM

Posted 03 January 2020 - 02:45 PM

@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, 03 January 2020 - 02:46 PM.


#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153210 posts
  • Local time: 12:30 PM

Posted 03 January 2020 - 02:59 PM

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.



#8 Jeremy Gollehon OFFLINE  

Jeremy Gollehon

    Advanced Member

  • Members
  • 48 posts
  • Local time: 11:30 AM

Posted 03 January 2020 - 03:31 PM   Best Answer

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, 03 January 2020 - 03:32 PM.


#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153210 posts
  • Local time: 12:30 PM

Posted 05 January 2020 - 04:30 PM

Thanks for the feedback !



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153210 posts
  • Local time: 12:30 PM

Posted 05 January 2020 - 04:30 PM

 

 

 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.



#11 Jeremy Gollehon OFFLINE  

Jeremy Gollehon

    Advanced Member

  • Members
  • 48 posts
  • Local time: 11:30 AM

Posted 06 January 2020 - 02:32 PM

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, 06 January 2020 - 02:38 PM.


#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153210 posts
  • Local time: 12:30 PM

Posted 06 January 2020 - 04:57 PM

 

 

I'm now wishing Emby would keep watched status around even though the item is deleted.

We do.



#13 Jeremy Gollehon OFFLINE  

Jeremy Gollehon

    Advanced Member

  • Members
  • 48 posts
  • Local time: 11:30 AM

Posted 07 January 2020 - 06:11 PM

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, 07 January 2020 - 06:12 PM.


#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153210 posts
  • Local time: 12:30 PM

Posted 08 January 2020 - 11:44 PM

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/c...ature-requests/

 

Thanks.







Also tagged with one or more of these keywords: trakt

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users