blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.66k stars 308 forks source link

Added a condition if someone is watching on the same device #339

Closed Harybo closed 1 year ago

Harybo commented 2 years ago

For killstream.py

Added a condition if someone is watching on the same device and the stream is not yet cut due to a bug. That his new streams are not counted and that he is not killed

Harybo commented 2 years ago

Capture

Here is an example of what I would like to do. In the screenshot of course it can't work but here is the idea

blacktwin commented 2 years ago

Can you give me more of an example for when this issue happens? What's the bug? Is it specific to a client?

Harybo commented 2 years ago

Can you give me more of an example for when this issue happens? What's the bug? Is it specific to a client?

I don't have an example at hand but for example. Someone is watching on a computer with the PLEX application windows but the connection goes down for a while. The flow is still considered to be in progress by PLEX server. But it will not be able to restart on the same computer if the maximum number of flows allowed is set to 1. So I would like to have a condition if the person reads a flow on the same computer that does not count it in the maximum flows allowed to the user.

blacktwin commented 1 year ago

I still don't understand the issue here. Please reopen when you have steps to reproduce the scenario you want to solve for.