Jump to content
fede91it

[Trakt] Episodes and movies seen do not synchronize

Recommended Posts

fede91it

Although the connection to Trakt.tv is correctly configured, once episodes or movies are watched, Emby does not synchronize the status on Trakt.tv.

Browsing the forum I read that many others have the same problem. Can we work on this?

Thank you 🙏

Share this post


Link to post
Share on other sites
Luke

Hi there, please go over an example and attach the emby server log. thanks.

Share this post


Link to post
Share on other sites
fede91it

I'm enclosing the logs, I guess this is the file, otherwise tell me if I have to attach anything else.

Concrete example: this morning I saw an anime episode, once finished Emby checked it as "displayed", but on Trakt there wasn't any synchronization and the episode still results "not watched".

embyserver.txt

Share this post


Link to post
Share on other sites
fede91it

I'm also enclosing today's logs, where I had enabled the debugging option in Emby

embyserver.txt

Share this post


Link to post
Share on other sites
Luke

What example should we be looking at in these log files? What time?

Share this post


Link to post
Share on other sites
fede91it
Posted (edited)

Look at this part, for example. From the logs it is evident that after the end of the episode with TvDB ID 4315551 Emby tries to communicate with Trakt but an error is generated.

2020-06-20 08:37:55.081 Debug Trakt: POST {"episode":{"ids":{"tvdb":4315551}},"progress":100,"app_version":"4.4.3.0","app_date":"2020-06-20"}
2020-06-20 08:37:55.081 Info HttpClient: POST https://api.trakt.tv/oauth/token
2020-06-20 08:37:55.126 Info HttpServer: HTTP GET http://192.168.8.100:8096/emby/Users/7dd1892c421148c18b2e220eee62b46c/Items/9295?format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; AFTMM Build/NS6271)
2020-06-20 08:37:55.151 Info HttpServer: HTTP Response 200 to 192.168.8.177. Time: 25ms. http://192.168.8.100:8096/emby/Users/7dd1892c421148c18b2e220eee62b46c/Items/9295?format=json
2020-06-20 08:37:55.189 Info HttpServer: HTTP GET http://192.168.8.100:8096/emby/Shows/NextUp?Limit=1&UserId=7dd1892c421148c18b2e220eee62b46c&EnableTotalRecordCount=false&SeriesId=919&Fields=Overview&format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; AFTMM Build/NS6271)
2020-06-20 08:37:55.194 Info HttpServer: HTTP Response 200 to 192.168.8.177. Time: 5ms. http://192.168.8.100:8096/emby/Shows/NextUp?Limit=1&UserId=7dd1892c421148c18b2e220eee62b46c&EnableTotalRecordCount=false&SeriesId=919&Fields=Overview&format=json
2020-06-20 08:37:55.525 Info HttpServer: HTTP GET http://192.168.8.100:8096/emby/Users/7dd1892c421148c18b2e220eee62b46c/Items/9295?format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; AFTMM Build/NS6271)
2020-06-20 08:37:55.531 Info HttpServer: HTTP Response 200 to 192.168.8.177. Time: 6ms. http://192.168.8.100:8096/emby/Users/7dd1892c421148c18b2e220eee62b46c/Items/9295?format=json
2020-06-20 08:37:55.858 Info HttpServer: HTTP GET http://192.168.8.100:8096/emby/Users/7dd1892c421148c18b2e220eee62b46c/Items/9295?format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; AFTMM Build/NS6271)
2020-06-20 08:37:55.865 Info HttpServer: HTTP Response 200 to 192.168.8.177. Time: 6ms. http://192.168.8.100:8096/emby/Users/7dd1892c421148c18b2e220eee62b46c/Items/9295?format=json
2020-06-20 08:37:55.899 Info HttpClient: POST https://api.trakt.tv/oauth/token
2020-06-20 08:37:55.921 Info HttpServer: HTTP POST http://192.168.8.100:8096/emby/Items/9295/PlaybackInfo?format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; AFTMM Build/NS6271)
2020-06-20 08:37:55.923 Debug MediaInfoService: GetPostedPlaybackInfo request: {"Id":"9295","UserId":"7dd1892c421148c18b2e220eee62b46c","MaxStreamingBitrate":80000000,"StartTimeTicks":0,"MaxAudioChannels":8,"DeviceProfile":{"Name":"Android-Exo","EnableAlbumArtInDidl":false,"EnableSingleAlbumArtLimit":false,"EnableSingleSubtitleLimit":false,"SupportedMediaTypes":"Audio,Photo,Video","MaxAlbumArtWidth":0,"MaxAlbumArtHeight":0,"MaxStreamingBitrate":110000000,"MusicStreamingTranscodingBitrate":128000,"TimelineOffsetSeconds":0,"RequiresPlainVideoItems":false,"RequiresPlainFolders":false,"IgnoreTranscodeByteRangeRequests":false,"XmlRootAttributes":[],"DirectPlayProfiles":[{"Container":"m4v,mov,xvid,vob,mkv,wmv,asf,ogm,ogv,mp4,webm,m4a,fmp4,ogg,flv,flac","AudioCodec":"aac,mp3,mp2,pcm_s16le,pcm_s24le,pcm_s32le,opus,aac_latm,mp4a_latm,ac3,eac3","VideoCodec":"h264,hevc,vp8,vp9,mpeg,mpeg2video","Type":"Video"},{"Container":"aac,mp3,mpa,wav,wma,mp2,ogg,oga,webma,ape,opus,flac","Type":"Audio"},{"Container":"jpg,jpeg,png,gif","Type":"Photo"}],"TranscodingProfiles":[{"Container":"ts","Type":"Video","VideoCodec":"h264,mpeg2video,hevc,h265","AudioCodec":"aac_latm,mp4a_latm,ac3,eac3,aac,mp3","Protocol":"hls","EstimateContentLength":false,"EnableMpegtsM2TsMode":false,"TranscodeSeekInfo":"Auto","CopyTimestamps":true,"Context":"Streaming","MinSegments":2,"SegmentLength":0,"BreakOnNonKeyFrames":true,"ManifestSubtitles":"vtt"},{"Container":"ts","Type":"Audio","AudioCodec":"aac","Protocol":"hls","EstimateContentLength":false,"EnableMpegtsM2TsMode":false,"TranscodeSeekInfo":"Auto","CopyTimestamps":false,"Context":"Streaming","MinSegments":0,"SegmentLength":0,"BreakOnNonKeyFrames":false}],"ContainerProfiles":[],"CodecProfiles":[{"Type":"Video","Conditions":[{"Condition":"EqualsAny","Property":"VideoProfile","Value":"high|main|baseline|constrained baseline","IsRequired":false},{"Condition":"LessThanEqual","Property":"VideoLevel","Value":"51","IsRequired":false},{"Condition":"LessThanEqual","Property":"Height","Value":"2160","IsRequired":false}],"ApplyConditions":[],"Codec":"h264"},{"Type":"Video","Conditions":[{"Condition":"EqualsAny","Property":"VideoProfile","Value":"Main|Main 10","IsRequired":false}],"ApplyConditions":[],"Codec":"hevc"},{"Type":"VideoAudio","Conditions":[{"Condition":"LessThanEqual","Property":"AudioChannels","Value":"8","IsRequired":false}],"ApplyConditions":[]},{"Type":"Video","Conditions":[{"Condition":"LessThanEqual","Property":"Height","Value":"2160","IsRequired":false}],"ApplyConditions":[]}],"ResponseProfiles":[],"SubtitleProfiles":[{"Format":"srt","Method":"Embed"},{"Format":"srt","Method":"External"},{"Format":"subrip","Method":"Embed"},{"Format":"subrip","Method":"External"},{"Format":"ass","Method":"Embed"},{"Format":"ssa","Method":"Embed"},{"Format":"ass","Method":"External"},{"Format":"ssa","Method":"External"},{"Format":"pgs","Method":"Embed"},{"Format":"pgssub","Method":"Embed"},{"Format":"dvdsub","Method":"Encode"},{"Format":"dvbsub","Method":"Embed"},{"Format":"vobsub","Method":"Encode"},{"Format":"dvb_teletext","Method":"Embed"},{"Format":"dvb_teletext","Method":"External"},{"Format":"dvb_subtitle","Method":"Embed"},{"Format":"vtt","Method":"Hls"},{"Format":"vtt","Method":"External"},{"Format":"ttml","Method":"Embed"},{"Format":"ttml","Method":"External"},{"Format":"tx3g","Method":"Embed"},{"Format":"tx3g","Method":"External"},{"Format":"sub","Method":"Encode"},{"Format":"idx","Method":"Encode"}]},"EnableDirectPlay":true,"EnableDirectStream":true,"EnableTranscoding":true,"AllowVideoStreamCopy":true,"AllowAudioStreamCopy":true,"IsPlayback":false,"AutoOpenLiveStream":true,"DirectPlayProtocols":["Http"]}
2020-06-20 08:37:55.927 Info MediaInfoService: User policy for Federico. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2020-06-20 08:37:55.927 Info HttpServer: HTTP Response 200 to 192.168.8.177. Time: 6ms. http://192.168.8.100:8096/emby/Items/9295/PlaybackInfo?format=json
2020-06-20 08:37:56.212 Debug App: Begin Sending Alive Notifications For All Devices
2020-06-20 08:37:56.212 Debug App: Sending alive notification MediaServer - f4b72ed91c434f7995ad95a9ae882894
2020-06-20 08:37:56.213 Debug App: Sending alive notification MediaServer - f4b72ed91c434f7995ad95a9ae882894
2020-06-20 08:37:56.214 Debug App: Sending alive notification MediaServer - f4b72ed91c434f7995ad95a9ae882894
2020-06-20 08:37:56.214 Debug App: Sending alive notification ContentDirectory - f4b72ed91c434f7995ad95a9ae882894
2020-06-20 08:37:56.215 Debug App: Sending alive notification ContentDirectory - f4b72ed91c434f7995ad95a9ae882894
2020-06-20 08:37:56.215 Debug App: Sending alive notification ConnectionManager - f4b72ed91c434f7995ad95a9ae882894
2020-06-20 08:37:56.215 Debug App: Sending alive notification ConnectionManager - f4b72ed91c434f7995ad95a9ae882894
2020-06-20 08:37:56.216 Debug App: Completed Sending Alive Notifications For All Devices
2020-06-20 08:37:56.493 Info HttpServer: HTTP GET http://192.168.8.100:8096/emby/Users/7dd1892c421148c18b2e220eee62b46c/Items/resume?Filters=IsResumable&ImageTypeLimit=1&Fields=PrimaryImageAspectRatio%2COverview%2CCanDelete%2CItemCounts%2CDisplayPreferencesId%2CCriticRating%2CCommunityRating%2COfficialRating%2CPremiereDate%2CEndDate%2CProductionYear&sortOrder=Descending&SortBy=DatePlayed&MediaTypes=Video&EnableTotalRecordCount=false&recursive=true&Limit=30&CollapseBoxsetItems=false&format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; AFTMM Build/NS6271)
2020-06-20 08:37:56.503 Info HttpServer: HTTP Response 200 to 192.168.8.177. Time: 10ms. http://192.168.8.100:8096/emby/Users/7dd1892c421148c18b2e220eee62b46c/Items/resume?Filters=IsResumable&ImageTypeLimit=1&Fields=PrimaryImageAspectRatio%2COverview%2CCanDelete%2CItemCounts%2CDisplayPreferencesId%2CCriticRating%2CCommunityRating%2COfficialRating%2CPremiereDate%2CEndDate%2CProductionYear&sortOrder=Descending&SortBy=DatePlayed&MediaTypes=Video&EnableTotalRecordCount=false&recursive=true&Limit=30&CollapseBoxsetItems=false&format=json
2020-06-20 08:37:56.576 Info HttpClient: POST https://api.trakt.tv/oauth/token
2020-06-20 08:37:56.739 Error Trakt: Exception handled sending status update
	*** Error Report ***
	Version: 4.4.3.0
	Command line: C:\Users\fede9\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///C:/Users/fede9/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	System.Environment.Version: 3.1.4
	Processor count: 8
	Program data path: C:\Users\fede9\AppData\Roaming\Emby-Server\programdata
	Application directory: C:\Users\fede9\AppData\Roaming\Emby-Server\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, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.SetRequestHeaders(HttpRequestOptions options, TraktUser traktUser, CancellationToken cancellationToken)
	   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, CancellationToken cancellationToken)
	   at Trakt.ServerMediator.KernelPlaybackStopped(Object sender, PlaybackStopEventArgs e)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()

 

Edited by fede91it

Share this post


Link to post
Share on other sites
vdatanet

Long ago I had the same issue. I deleted trakt config file and I configured again the plugin. You have authorization issues.

Share this post


Link to post
Share on other sites
fede91it

Do you remember where this file to delete is?

Share this post


Link to post
Share on other sites
vdatanet
28 minutes ago, fede91it said:

Do you remember where this file to delete is?

 

Share this post


Link to post
Share on other sites
fede91it

Thank you, I deleted the file now it works properly!

Share this post


Link to post
Share on other sites
Luke

Thanks for the feedback.

Share this post


Link to post
Share on other sites
miniliQuid

Hadn't taken the effort yet to look into this since installing trakt plugin.
Have had the auth problem since installing the plugin but deleting trakt.xml and then replacing the pin worked.

Share this post


Link to post
Share on other sites
Luke

Glad to hear it, thanks for reporting back.

Share this post


Link to post
Share on other sites
BTerrell721

Any guidance as to where this trakt.xml plugin can be found when using the Emby plugin for Kodi? Struggling to find it but having the same problem connecting to Trakt, even after reinstalling plugin entirely.

Share this post


Link to post
Share on other sites
Sab39
20 hours ago, BTerrell721 said:

Any guidance as to where this trakt.xml plugin can be found when using the Emby plugin for Kodi? Struggling to find it but having the same problem connecting to Trakt, even after reinstalling plugin entirely.

the key to doing this is stopping emby before deleting the xml. So stop Emby, go into Emby/plugins/configurations, then delete the xml, then restart the emby server, then go to the settings of the trakt plugin and reauthorize whichever account you need to work (all old authorizations are gone so you'll need to do it for each user).

Share this post


Link to post
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...