jellyfin / jellyfin-kodi

Jellyfin Plugin for Kodi
https://jellyfin.org
GNU General Public License v3.0
860 stars 113 forks source link

Resuming media plays from incorrect time #912

Open ChocOranger opened 2 months ago

ChocOranger commented 2 months ago

Describe the bug When resuming a movie the time displayed in Kodi's context popup for resume is correct (eg Resume from 00:13:45) will actually resume from around a minute or so before that time (eg 00:12:45). Actual time appears to vary depending on how far played (eg 1:08:31 resumes @ 1:07:07) The jumpback on resume time is the default of 10 seconds. I originally posted on the Jellyfin forum https://forum.jellyfin.org/t-jellyfin-kodi-addon-resuming-media-jumps-back-about-a-minute with one other person replying they had the same issue. Nobody replied it was working correctly for them.

To Reproduce

  1. Play a movie
  2. Stop the movie part way through noting the time played
  3. Restart the movie and the resume from should be the time played in step 2 minus jumpback time.
  4. Actual restart position is around a minute earlier than displayed in the Kodi context menu.

Expected behavior Movie restarts from the stopped time minus the jumpback on resume time.

Logs Couldn't see any relevant log errors

Screenshots

System (please complete the following information): All versions latest stable available. Clean installs of portable versions to test

Additional context Kodi without jellyfin resumes correctly. Jellyfin web interface resumes correctly. Jellyfin addon causes a jumpback of around a minute from the time shown in Kodi's context window.

sic6SaNdMaN commented 5 days ago

I can confirm this problem. It occurs to me since I switched from "native paths" to "AddOn mode" due to this discussion: https://github.com/jellyfin/jellyfin/discussions/11654

I never switched back to "native paths" because I want to test "AddOn mode" more, if I can find anymore issues. And I think, that this IS an issue with AddOn mode - I never experienced this behavious with native paths.

sic6SaNdMaN commented 4 days ago

More Info: I'm pretty sure, that the resuming time is always exactly one minute before the actual stopping time. So the configured time isn't used, it's always 60 seconds instead.