- Python 3.6+
- Tautulli
Edit rtorrent_throttle.py
and set rTorrent username, password and RPC2 url.
Commum Scripts Settings in Tautulli:
Taultulli > Settings > Notification Agents > Add a Notification Agent > Script
Set Script Folder
Select rtorrent_throttle.py
Script Timeout 0
Notification conditions:
- Condition {1}: Stream Local is 0
- Condition {2}: Action is play
- Condition {3}: Streams is 0
Condition logic: {1} and {2} or {3}
Triggers:
- Playback Start
- Playback Stop
Arguments:
Set Download/Upload limit in KB/s. Set -1
for unlimited
- Playback Start:
-D 1024 -U 1024
- Playback Stop:
-D -1 -U -1
Settings -> Notifications & Newsletters -> (Show Advanced) Allow Playback Stop Notifications Exceeding Watched Percent.
-U - Set max upload speed [KBs], use "-1" to set unlimited
-D - Set max download speed [KBs], use "-1" to set unlimited
-h | --help - Help
https://gist.github.com/Generator/67da7dc859634046165320ef061769e0 https://gist.github.com/Tinynja/2169be3f20b8656f67dbc89129d57598