2024-10-25, 04:22 AM
Describe the bug
Watch state is only synced from Jellyfin to Kodi. After watching an episode on Kodi, it gets marked as completed, but moments later will be overwritten by the state on Jellyfin and will be marked as unwatched.
To Reproduce
After watching an episode in Kodi, watch status is synced from Kodi -> Jellyfin. Episode should be marked as watched in both Kodi and Jellyfin.
Logs
Kodi: https://hastebin.com/share/utodocoleq.rust
Jellyfin:
System:
Aside from this add-on, I only have Arctic Horizon 2 as my skin for Kodi.
I am also using mpv as an external player.
Watch state is only synced from Jellyfin to Kodi. After watching an episode on Kodi, it gets marked as completed, but moments later will be overwritten by the state on Jellyfin and will be marked as unwatched.
To Reproduce
- On Kodi, click to play an episode
- Watch any amount of that episode
- After playing the episode, wait a few seconds
- On Kodi, see status of episode change from watched to unwatched
- On Jellyfin, see that watch status is unchanged (still unwatched)
After watching an episode in Kodi, watch status is synced from Kodi -> Jellyfin. Episode should be marked as watched in both Kodi and Jellyfin.
Logs
Kodi: https://hastebin.com/share/utodocoleq.rust
Jellyfin:
Code:
[INF] WS "xx.xx.xx.xx" request
[INF] WS "xx.xx.xx.xx" request
[INF] FFmpeg exited with code 0
[INF] WS "xx.xx.xx.xx" request
[INF] Plugin Settings Requested...
[INF] Sync Requested for UserID: '"UserID"' with LastUpdateDT: '"2024-10-25T03:26:28z"'
[INF] Added: 13, Removed: 13, Updated: 0, Changed User Data: 1
[INF] Request Finished Taking "00:00:00.1458584"
[INF] User policy for "User". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[INF] Adding playback tracker : StartId-UserID-ItemId
[INF] PlaybackTracker : Adding Start Event : 10/25/2024 00:03:34
[INF] Creating StartPlaybackTimer Task
[INF] StartPlaybackTimer : Entered
[INF] Started user data sync
[INF] User Data Sync: User "User" ("UserID") posted 2 updates
[INF] Finished user data sync, taking "00:00:00.0290744"
[INF] Processing playback tracker : "StartId-UserID-ItemId"
[INF] Playback stopped reported by app "Kodi" "1.0.5 py3" playing "Get the Sports Festival Done!". Stopped at "0" ms
[INF] Playback stop tracker found, processing stop : "StartId-UserID-ItemId"
[INF] PlaybackTracker : Adding Stop Event : 10/25/2024 00:03:43
[INF] Playback stop but TrackedPlaybackInfo not found! not storing activity in DB
[INF] Started user data sync
[INF] User Data Sync: User "User" ("UserID") posted 2 updates
[INF] Finished user data sync, taking "00:00:00.0031236"
[INF] session.RemoteEndPoint : "xx.xx.xx.xx"
[INF] StartPlaybackTimer : event_playing_id = "ItemId"
[INF] StartPlaybackTimer : event_user_id = "UserID"
[INF] StartPlaybackTimer : event_user_id_int = 2
[INF] StartPlaybackTimer : session_playing_id = ""
[INF] StartPlaybackTimer : session_user_id = "UserID"
[INF] StartPlaybackTimer : play_method = "na"
[INF] StartPlaybackTimer : e.ClientName = "Kodi"
[INF] StartPlaybackTimer : e.DeviceName = "Kodi (DeviceName)"
[INF] StartPlaybackTimer : ItemName = "My Deer Friend Nokotan - s01e09 - Get the Sports Festival Done!"
[INF] StartPlaybackTimer : ItemId = "ItemId"
[INF] StartPlaybackTimer : ItemType = "Episode"
[INF] StartPlaybackTimer : Details do not match for play item
[INF] StartPlaybackTimer : Exited
[INF] User policy for "User". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[INF] Adding playback tracker : StartId-UserID-ItemId
[INF] PlaybackTracker : Adding Start Event : 10/25/2024 00:03:56
[INF] Creating StartPlaybackTimer Task
[INF] StartPlaybackTimer : Entered
[INF] Started user data sync
[INF] User Data Sync: User "User" ("UserID") posted 2 updates
[INF] Finished user data sync, taking "00:00:00.0023743"
[INF] Processing playback tracker : "StartId-UserID-ItemId"
[INF] User policy for "User". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[INF] Playback stopped reported by app "Kodi" "1.0.5 py3" playing "Get the Sports Festival Done!". Stopped at "0" ms
[INF] Playback stop tracker found, processing stop : "StartId-UserID-ItemId"
[INF] PlaybackTracker : Adding Stop Event : 10/25/2024 00:03:59
[INF] Playback stop but TrackedPlaybackInfo not found! not storing activity in DB
[INF] Started user data sync
[INF] User Data Sync: User "User" ("UserID") posted 2 updates
[INF] Finished user data sync, taking "00:00:00.0025797"
[INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[INF] User policy for "User". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[INF] Adding playback tracker : StartId-UserID-ItemId
[INF] PlaybackTracker : Adding Start Event : 10/25/2024 00:04:06
[INF] Creating StartPlaybackTimer Task
[INF] StartPlaybackTimer : Entered
[INF] Started user data sync
[INF] User Data Sync: User "User" ("UserID") posted 2 updates
[INF] Finished user data sync, taking "00:00:00.0049136"
[INF] Processing playback tracker : "StartId-UserID-ItemId"
[INF] Lost 1 WebSockets.
[INF] session.RemoteEndPoint : "xx.xx.xx.xx"
[INF] StartPlaybackTimer : event_playing_id = "ItemId"
[INF] StartPlaybackTimer : event_user_id = "UserID"
[INF] StartPlaybackTimer : event_user_id_int = 2
[INF] StartPlaybackTimer : session_playing_id = "ItemId"
[INF] StartPlaybackTimer : session_user_id = "UserID"
[INF] StartPlaybackTimer : play_method = "DirectStream"
[INF] StartPlaybackTimer : e.ClientName = "Kodi"
[INF] StartPlaybackTimer : e.DeviceName = "Kodi (DeviceName)"
[INF] StartPlaybackTimer : ItemName = "My Deer Friend Nokotan - s01e09 - Get the Sports Festival Done!"
[INF] StartPlaybackTimer : ItemId = "ItemId"
[INF] StartPlaybackTimer : ItemType = "Episode"
[INF] StartPlaybackTimer : All matches, playback registered
[INF] Playback tracker found, adding playback info : "StartId-UserID-ItemId"
[INF] Saving playback tracking activity in DB
[INF] StartPlaybackTimer : Exited
[INF] Playback stopped reported by app "Kodi" "1.0.5 py3" playing "Get the Sports Festival Done!". Stopped at "0" ms
[INF] Playback stop tracker found, processing stop : "StartId-UserID-ItemId"
[INF] PlaybackTracker : Adding Stop Event : 10/25/2024 00:04:19
[INF] Saving playback tracking activity in DB
[INF] Started user data sync
[INF] User Data Sync: User "User" ("UserID") posted 2 updates
[INF] Finished user data sync, taking "00:00:00.0023012"
[INF] session.RemoteEndPoint : "xx.xx.xx.xx"
[INF] StartPlaybackTimer : event_playing_id = "ItemId"
[INF] StartPlaybackTimer : event_user_id = "UserID"
[INF] StartPlaybackTimer : event_user_id_int = 2
[INF] StartPlaybackTimer : session_playing_id = ""
[INF] StartPlaybackTimer : session_user_id = "UserID"
[INF] StartPlaybackTimer : play_method = "na"
[INF] StartPlaybackTimer : e.ClientName = "Kodi"
[INF] StartPlaybackTimer : e.DeviceName = "Kodi (DeviceName)"
[INF] StartPlaybackTimer : ItemName = "My Deer Friend Nokotan - s01e09 - Get the Sports Festival Done!"
[INF] StartPlaybackTimer : ItemId = "ItemId"
[INF] StartPlaybackTimer : ItemType = "Episode"
[INF] StartPlaybackTimer : Details do not match for play item
[INF] StartPlaybackTimer : Exited
[INF] WS "xx.xx.xx.xx" closed
[INF] WS "xx.xx.xx.xx" request
System:
- OS: Windows 10
- Jellyfin Version: 10.9.11
- Kodi Version: 21.1.0
- Addon Version: 1.0.5+py3
- Playback Mode: Add-On
Aside from this add-on, I only have Arctic Horizon 2 as my skin for Kodi.
I am also using mpv as an external player.