Jump to content

Trakt histroy has 2 plays after finishing a file


invader
Go to solution Solved by vdatanet,

Recommended Posts

invader

Hello there,

 

  • I noticed the Trakt plugin was updated, this is when the issue started. 
  • Tested Emby app on iOS, Raspberry Pi running Emby Theatre (latest stable installed from .deb file) and the web player. All mark TV episodes as watched twice. The real end time is one, and it looks like the start time is the other. This only happens after you finish the episode. IE when you start it, there is no watch in Trakt, just 2 as soon as the episode is completed.
  • Screenshot of Trakt attached
  • I enabled degub logging in the Trakt plugin and the Emby server.
  • I have the corresponding log file but I'd rather not post it publicly, please let me know and I can send it if required.
  • Note I haven't been able to install the Server update (4.3.0.26) as it isn't appearing in the Synology package manager yet
  • My server version is v4.2.0.1

Thanks.

post-502966-0-15244900-1574665905_thumb.png

Edited by invader
  • Like 1
Link to comment
Share on other sites

sephrat

This sounds a bit like an issue I had with series: https://emby.media/community/index.php?/topic/77029-series-episode-wrongly-set-as-played-in-special-cases/ (issue #2). Although your issue looks less random than the one I had.

It was a bug in Emby core, not the plugin. 4.2 seems old, I think this was fixed in 4.3. Updating may fix the bug.

Link to comment
Share on other sites

vdatanet

Another example:

2019-11-25 21:20:07.786 Info SessionManager: Playback stopped reported by app tvOS 1.4.2.36  (Beta) playing Planeta prohibido. Stopped at 5910196 ms
2019-11-25 21:20:07.788 Info HttpServer: HTTP Response 200 to 192.168.1.117. Time: 6ms. http://192.168.1.100:8096/emby/Users/575b9dd9ae9242548f5bd17cd52c541f/Items/Resume?Fields=PrimaryImageAspectRatio&IncludeItemTypes=Movie&limit=4&EnableImageTypes=Primary%2CThumb%2CBackdrop&EnableTotalRecordCount=false
2019-11-25 21:20:07.788 Info HttpServer: HTTP Response 204 to 192.168.1.117. Time: 4ms. http://192.168.1.100:8096/emby/Sessions/Playing/Stopped
2019-11-25 21:20:07.788 Info Trakt: Playback Stopped
2019-11-25 21:20:07.788 Info Trakt: Item is played. Scrobble
2019-11-25 21:20:07.789 Info HttpClient: POST https://api.trakt.tv/scrobble/stop

5ddc3862dfbd2_Capturadepantalla20191125a

 

I see played times slightly differents

embyserver.txt

Edited by vdatanet
Link to comment
Share on other sites

vdatanet

Items played with Plex only have one play in Trakt, In contrast, items played in Emby usually have two plays in Trakt.

 

5ddcc0a250203_Anotacin20191126070213.jpg

 

Big Bang Theory was played in Plex. Witness and Batwoman were played in Emby. First watched date corresponds with start date and Second watched date corresponds with end date. I have to say that this does not always happen but very often. 

Edited by vdatanet
Link to comment
Share on other sites

vdatanet

Look at this, now it's 14:20 in Spain. I've finished watching this episode at 14:08. Trakt reports it was watched at 14:08 and watched at 15:08, a future date. 

 

5ddd267c6153b_Capturadepantalla20191126a

Link to comment
Share on other sites

invader

Updated to:

 

Emby Server 4.3.0.30

Trakt plugin v3.3.8

 

Duplicate watch issue still exists however seems to have changed. One watch at the correct time. One in the future.

Link to comment
Share on other sites

sephrat

I run Trakt v3.3.8 and experience the same issue. Movie was set as watched at 21:00 and 23:05.

I started watching at 21:00

2019-11-27 21:00:00.748 Info SessionManager: Playback start reported by app AndroidTv 1.7.60g playing Prometheus. Started at 0 ms
2019-11-27 21:00:00.751 Info HttpServer: HTTP Response 204 to client_ip. Time: 80ms. http://server_ip:8096/emby/Sessions/Playing
2019-11-27 21:00:00.756 Info Trakt: Playback Started
2019-11-27 21:00:00.765 Info HttpClient: POST https://api.trakt.tv/scrobble/start

I don't know if that's important but Trakt update task ran during the playblack:

2019-11-27 21:23:31.567 Info TaskManager: IntervalTrigger fired for task: Import playstates from Trakt.tv
2019-11-27 21:23:31.568 Info TaskManager: Executing Import playstates from Trakt.tv
2019-11-27 21:23:31.568 Info HttpClient: GET https://api.trakt.tv/sync/watched/movies
2019-11-27 21:23:32.380 Info HttpClient: GET https://api.trakt.tv/sync/watched/shows
2019-11-27 21:23:32.967 Info HttpClient: GET https://api.trakt.tv/sync/playback/movies
2019-11-27 21:23:33.270 Info HttpClient: GET https://api.trakt.tv/sync/playback/episodes
2019-11-27 21:23:33.833 Info Trakt: Trakt.tv watched Movies count = xxx
2019-11-27 21:23:33.833 Info Trakt: Trakt.tv watched Shows count = xxx
2019-11-27 21:23:33.833 Info Trakt: Trakt.tv playback Movies count = xxx
2019-11-27 21:23:33.833 Info Trakt: Trakt.tv playback Episodes count = xxx
2019-11-27 21:23:33.878 Info HttpServer: HTTP POST http://server_ip:8096/emby/Sessions/Playing/Progress. UserAgent: Dalvik/2.1.0 (Linux; U; Android 9; SHIELD Android TV Build/PPR1.180610.011)
2019-11-27 21:23:33.879 Info HttpServer: HTTP Response 204 to client_ip. Time: 1ms. http://server_ip:8096/emby/Sessions/Playing/Progress
2019-11-27 21:23:33.928 Info TaskManager: Import playstates from Trakt.tv Completed after 0 minute(s) and 2 seconds

Then playback stopped:

2019-11-27 23:05:07.285 Info SessionManager: Playback stopped reported by app AndroidTv 1.7.60g playing Prometheus. Stopped at 7089907 ms
2019-11-27 23:05:07.289 Info HttpServer: HTTP Response 204 to client_ip. Time: 46ms. http://server_ip:8096/emby/Sessions/Playing/Stopped
2019-11-27 23:05:07.302 Info Trakt: Playback Stopped
2019-11-27 23:05:07.302 Info Trakt: Item is played. Scrobble
2019-11-27 23:05:07.302 Info HttpClient: POST https://api.trakt.tv/scrobble/stop
2019-11-27 23:05:07.507 Info HttpServer: HTTP GET http://server_ip:8096/emby/Items/42081/Similar?Fields=Overview%2CPrimaryImageAspectRatio&UserId=a588284f0b2442d2a5c836c18f76c398&Limit=1&format=json. UserAgent: Dalvik/2.1.0 (Linux; U; Android 9; SHIELD Android TV Build/PPR1.180610.011)
2019-11-27 23:05:07.516 Info HttpServer: HTTP Response 200 to client_ip. Time: 9ms. http://server_ip:8096/emby/Items/42081/Similar?Fields=Overview%2CPrimaryImageAspectRatio&UserId=a588284f0b2442d2a5c836c18f76c398&Limit=1&format=json
2019-11-27 23:05:07.579 Info HttpServer: SocketException: http://server_ip:8096/emby/videos/42081/stream.mkv?DeviceId=825dafa62d79b200&MediaSourceId=b4aa5076625c8aeb75e5f57ff9fd90a0&Static=true&PlaySessionId=5b451767c4ae4b78ab49365edc5c63ab&api_key=fef502c1affe4bde86d84ce4c8f221ab
2019-11-27 23:05:07.579 Info HttpServer: HTTP Response 206 to client_ip. Time: 7506329ms. http://server_ip:8096/emby/videos/42081/stream.mkv?DeviceId=825dafa62d79b200&MediaSourceId=b4aa5076625c8aeb75e5f57ff9fd90a0&Static=true&PlaySessionId=5b451767c4ae4b78ab49365edc5c63ab
2019-11-27 23:05:08.330 Info HttpClient: POST https://api.trakt.tv/sync/history

Edit: I've enabled Trakt debug logging and will post them when I experience the issue again.

Edited by sephrat
Link to comment
Share on other sites

vdatanet

5de026615b985_Capturadepantalla20191128a

2019-11-28 20:37:47.975 Info Trakt: Playback Started
2019-11-28 20:52:49.886 Info Trakt: Playback Stopped
2019-11-28 20:52:49.886 Info Trakt: Item is played. Scrobble

I've disabled Trakt tasks, only scrobbling. I have one watch at start time and another watch at end time, but both appear at end time. Logs look correct.

Edited by vdatanet
  • Like 1
Link to comment
Share on other sites

frankmb

I'm experiencing the exact same problem. Two plays of the same episode after watching it.

 

Server 4.3.0.30

Trakt plugin 3.3.8.0

 

Watch times in Trakt history are the time the episode was started and the time it finished.

  • Like 1
Link to comment
Share on other sites

MyronAub

Me too, everything appears twice in Trakt since I upgraded to the 2019 second generation FireTV Cube; once with viewing start time and then again with viewing end time.

 

Server 4.3.0.30

Fire TV Cube AndroidTv 1.7.53a

Trakt plugin 3.3.8.0

 

5de5376cc5f29_embyfiretvcubetrakt.jpg

Link to comment
Share on other sites

justsomebody

More logs from today. This is with debug logging enabled in the Trakt plugin settings.

 

2019-12-02 18:33:23.689 Info SessionManager: Playback start reported by app Emby Theater 3.0.10 playing 409 Conflict. Started at 0 ms
2019-12-02 18:33:23.690 Info HttpServer: HTTP Response 204 to 192.168.20.18. Time: 3ms. http://192.168.20.18:8096/emby/Sessions/Playing
2019-12-02 18:33:23.690 Info Trakt: Playback Started
2019-12-02 18:33:23.690 Info HttpClient: POST https://api.trakt.tv/scrobble/start
2019-12-02 19:21:35.455 Info SessionManager: Playback stopped reported by app Emby Theater 3.0.10 playing 409 Conflict. Stopped at 2825792 ms
2019-12-02 19:21:35.456 Info HttpServer: HTTP Response 204 to 192.168.20.18. Time: 1ms. http://192.168.20.18:8096/emby/Sessions/Playing/Stopped
2019-12-02 19:21:35.456 Info Trakt: Playback Stopped
2019-12-02 19:21:35.457 Info Trakt: Item is played. Scrobble
2019-12-02 19:21:35.457 Info HttpClient: POST https://api.trakt.tv/scrobble/stop

5de5e9f8db436_Image24.png

 

embyserver.txt

Link to comment
Share on other sites

  • Solution
vdatanet

Please try the Trakt plugin version 3.3.9 and see how that compares. Thanks.

 

Fixed! Now after watching a movie in Emby, there is only one play in Trakt. Thanks!

  • Like 2
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...