JBOPS icon indicating copy to clipboard operation
JBOPS copied to clipboard

Kill stream not saving video progress

Open zeroquinc opened this issue 2 years ago • 1 comments

Describe the bug

Whenever someone gets terminated with the following script, Plex doesn't remember the progress anymore and people have to manually skip forward again. This is annoying if you exactly forgot where you left off, if you stop it manually it does save the progress.

Provide logs

https://pastebin.com/FGj92uNW

It's the following script:

Kill non-local streams paused for a long time The default values will kill anything paused for over 20 minutes, checking every 30 seconds.

Script Timeout: 0 Important! Triggers: Playback Paused Conditions: [ Stream Local | is not | 1 ]

Arguments:

--jbop paused --sessionId {session_id} --killMessage 'Your stream was paused for over 20 minutes and has been automatically stopped for you.'

To Reproduce

Steps to reproduce the behavior:

  1. Configure the script
  2. Let someone pause the stream for 20mins.

Expected behavior I expect it to stop their stream but save playback progress. Is this normal behavior?

Desktop (please complete the following information):

  • OS: Docker
  • Python Version latest
  • PlexAPI version latest

zeroquinc avatar Sep 09 '22 07:09 zeroquinc

What is the client that is being killed? Some clients are slower than others to receive progress updates.

If progress is being lost then it's the client that hasn't sent the latest view offset value back to the PMS or the client hasn't checked back from PMS to know the last offset value.

Ultimately this isn't an issue with the script but a shortcoming of the client or the feature.

blacktwin avatar Sep 20 '22 01:09 blacktwin