Jump to content

[Issue] Trakt Plugin ignores "Pause" event despite SessionManager correctly reporting it


Go to solution Solved by Luke,

Recommended Posts

Posted

Hi everyone,

I've encountered a sync issue with the Trakt plugin. The plugin fails to send a scrobble/pause request to Trakt when the playback is paused in the client. This causes the watch progress on Trakt.tv to drift ahead of the actual playback (since Trakt assumes the user is still watching until it receives a pause or stop signal).

I have analyzed the logs, and they clearly show that Emby Server's SessionManager correctly identifies the Pause event, but the Trakt plugin triggers no API call for it.

Here are the raw logs from a single playback session:

1. Playback Start (Works Correctly) The SessionManager reports the start, and the Trakt plugin immediately sends the request.

Plaintext
2025-12-13 07:45:25.509 Info SessionManager: Playback start reported by app Emby Windows 2.234.2.0 on DESKTOP-BQAUQLF playing 枭起青壤 - S1, Ep2 - 第二集. Position: 181282 ms. PlaySessionId: a7d8d5050ea54ae5b9cc0d50d6fbc1c6. IsPaused: False
2025-12-13 07:45:29.158 Info HttpClient: POST https://api.trakt.tv/scrobble/start
2025-12-13 07:45:29.574 Info HttpClient: Http response 201 from https://api.trakt.tv/scrobble/start after 415ms

2. Pausing the Video (THE FAILURE) I paused the video. The SessionManager acknowledges this state change explicitly (IsPaused: True). However, there are no corresponding HttpClient requests from the Trakt plugin.

Plaintext
2025-12-13 07:46:33.551 Info SessionManager: Playback progress (Pause) reported by app Emby Windows 2.234.2.0 on DESKTOP-BQAUQLF playing 枭起青壤 - S1, Ep2 - 第二集. Position: 248966 ms. PlaySessionId: a7d8d5050ea54ae5b9cc0d50d6fbc1c6. IsPaused: True

(No Trakt API call was triggered here)

3. Stopping/Exiting Playback (Works Correctly) I exited the player later. The SessionManager reports the stop, and the plugin finally sends a request to save the progress.

Plaintext
2025-12-13 07:46:53.359 Info SessionManager: Playback stopped reported by app Emby Windows 2.234.2.0 on DESKTOP-BQAUQLF playing 枭起青壤 - S1, Ep2 - 第二集. Position: 248966 ms. PlaySessionId: a7d8d5050ea54ae5b9cc0d50d6fbc1c6. IsPaused: True
2025-12-13 07:46:56.281 Info HttpClient: POST https://api.trakt.tv/scrobble/pause
2025-12-13 07:46:56.895 Info HttpClient: Http response 201 from https://api.trakt.tv/scrobble/pause after 614ms

Conclusion: The issue is strictly isolated to the Pause event. Since the server is fully aware of the pause state (IsPaused: True), the Trakt plugin should be listening for this specific event to keep the progress in sync.

Could the team please investigate this?

Thanks.

  • Solution
Posted

Hi, please try this build of the trakt plugin and let me know if it does this for you:

Trakt.zip

Thanks.

  • Like 1
Posted
1 hour ago, Luke said:

Hi, please try this build of the trakt plugin and let me know if it does this for you:

Trakt.zip 253.8 kB · 1 download

Thanks.

Thanks for the quick update!

I have installed the new version and tested it. I can confirm the issue is resolved. The "Pause" event is now correctly triggering the scrobble request to Trakt, and the progress bar on Trakt.tv stays in sync with my playback.

Appreciate the fix.

  • Thanks 1

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