Jump to content

When Trakt scrobbling, sometimes after playing an episode, it is marked as watched on Emby without the last watched date


vdatanet

Recommended Posts

vdatanet

When Trakt scrobbling, sometimes after playing an episode, it is marked on Emby as watched without the last watched date. Not always, approximately 50%, especially in continuous playback.

 

Here is an example:

 

https://emby.media/community/index.php?/topic/9382-nextup-sorting/?p=782559

Edited by vdatanet
Link to comment
Share on other sites

vdatanet

This the relevant log:

Continue playing:

2019-09-13 22:11:46.306 Info SessionManager: Playback start reported by app tvOS 1.4.2.30  (Beta) playing Helado Italiano . Started at 1647369 ms
2019-09-13 22:11:46.307 Info Trakt: Playback Started

End Play:

2019-09-13 22:30:46.925 Info SessionManager: Playback stopped reported by app tvOS 1.4.2.30  (Beta) playing Helado Italiano . Stopped at 2787779 ms
2019-09-13 22:30:46.927 Info HttpServer: HTTP Response 204 to 192.168.1.117. Time: 2ms. http://192.168.1.100:8096/emby/Sessions/Playing/Stopped
2019-09-13 22:30:46.927 Info Trakt: Playback Stopped
2019-09-13 22:30:46.927 Info Trakt: Item is played. Scrobble
2019-09-13 22:30:46.927 Info HttpClient: POST https://api.trakt.tv/scrobble/stop
2019-09-13 22:30:46.927 Info HttpServer: HTTP Response 200 to 192.168.1.117. Time: 3ms. http://192.168.1.100:8096/emby/Users/575b9dd9ae9242548f5bd17cd52c541f/Items/Resume?Fields=PrimaryImageAspectRatio&IncludeItemTypes=Movie&limit=4&EnableImageTypes=Primary%2CThumb%2CBackdrop&EnableTotalRecordCount=false
2019-09-13 22:30:46.935 Info HttpServer: HTTP Response 200 to 192.168.1.117. Time: 15ms. http://192.168.1.100:8096/emby/Shows/NextUp?userId=575b9dd9ae9242548f5bd17cd52c541f&limit=4&excludeLocationTypes=Virtual
2019-09-13 22:30:46.938 Info HttpServer: HTTP GET http://192.168.1.100:8096/emby/Users/575b9dd9ae9242548f5bd17cd52c541f/Items?recursive=true&Fields=PrimaryImageAspectRatio&IncludeItemTypes=Movie&limit=10&EnableImageTypes=Primary%2CThumb%2CBackdrop&EnableTotalRecordCount=false&Filters=IsUnplayed&sortBy=DateCreated&sortOrder=Descending. UserAgent: Emby/1 CFNetwork/978.0.7 Darwin/18.7.0
2019-09-13 22:30:46.943 Info HttpServer: HTTP Response 200 to 192.168.1.117. Time: 5ms. http://192.168.1.100:8096/emby/Users/575b9dd9ae9242548f5bd17cd52c541f/Items?recursive=true&Fields=PrimaryImageAspectRatio&IncludeItemTypes=Movie&limit=10&EnableImageTypes=Primary%2CThumb%2CBackdrop&EnableTotalRecordCount=false&Filters=IsUnplayed&sortBy=DateCreated&sortOrder=Descending
2019-09-13 22:30:47.431 Info HttpServer: HTTP POST http://192.168.1.100:8096/emby/Sessions/Playing/Stopped. UserAgent: Emby/1 CFNetwork/978.0.7 Darwin/18.7.0
2019-09-13 22:30:47.435 Info SessionManager: Playback stopped reported by app tvOS 1.4.2.30  (Beta) playing Helado Italiano . Stopped at 2787779 ms
2019-09-13 22:30:47.436 Info Trakt: Playback Stopped
2019-09-13 22:30:47.436 Info Trakt: Item is played. Scrobble

I see playback stopped is reported twice. Is that normal? At first glance, I can confirm that the episodes played without last played date, report twice the playback stop.

 

I've also notice a Trakt error:

2019-09-13 22:30:48.896 Error Trakt: Exception handled sending status update
	*** Error Report ***
	Version: 4.2.1.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 5.0.0.27
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 6
	Program data path: /var/lib/emby
	Application directory: /opt/emby-server/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Conflict
	   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__DisplayClass32_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.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 vdatanet
Link to comment
Share on other sites

vdatanet

An this is the example:

 

5d7caf8a563f7_img1.png

 

Trakt has the correct playback time:

 

5d7cafa6414be_img2.jpg

 

This is a minor bug whose only consequence is the sorting of the "Next Up" row.

Link to comment
Share on other sites

vdatanet

Hi.  Do you have an example of this happening without the Trakt plug-in installed?

 

I can't find any, I have uninstalled the trakt plugin completely and will be watching to see what happens. For now I will manually mark my plays on Trakt website.

Link to comment
Share on other sites

vdatanet

Hi.  Do you have an example of this happening without the Trakt plug-in installed?

Yesterday I saw many episodes without Trakt installed and all episodes have the last played date, maybe the problem is Trakt scrobbling. I will create a new topic on the plugins area.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
vdatanet

This afternoon my family has watched several episodes of different TV shows, and for now I have not experienced this problem.

Link to comment
Share on other sites

vdatanet

Bad news, It's not fixed. Here is an example: Episode watched with LAST PLAYED empty:

 

5ddc347c61f65_Capturadepantalla20191125a

 

In Trakt it is watched, and date is correct.

Edited by vdatanet
Link to comment
Share on other sites

Version 3.3.8 of the trakt plugin will incorporate library resume settings when importing data from Trakt. Thanks.

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...