uraid / qbittorrent_throttle

Throttle qBittorrent on Plex stream Start/Stop
18 stars 2 forks source link

Something is wrong with the script logic... #2

Open Zantag opened 10 months ago

Zantag commented 10 months ago

Hi, i think something is wrong with the script logic:

Condition {1}: Stream Local is 0
Condition {2}: Action is play
Condition {3}: Streams is 0

Almost every time when someone stop streaming, the script doesn't execute qbit to full download/ulpoad speed. I checked tautulli log and it seems the script execute only when someone start streeming but not when someone stop it.

Lizzardis commented 7 months ago

Unsure if you'll get this notification, however I kept having this issue for some unknown reason and I think it was the last conditon that was ruining it, although I haven't tested it fully.

If you put in these conditons:

Condition {1}: Stream Local is 0
Condition {2}: Action is play OR stop

With the Condition Logic as:

{1} and {2}

It seems to ensure that whilst there are local streams running, your DL & UL will not be throttled, but as soon as a remote stream starts playing the script is triggered, and it is then triggered again when they stop playing.

I'm not sure if a new command was written into Tautulli at some point to break this, I honestly have no idea why it broke, however this fix seems to work perfectly for me so far.