JBOPS/killstream
Landon Abney 0e5c374449
Return instead of forcibly exiting
This makes no difference currently as the script doesn't do anything
after this function finishes, but it allows any cleanup work to happen
at the end.
2018-06-18 12:38:10 -07:00
..
kill_else_if_buffering.py PlexPy names to tautulli. Agent_id to notifier_id. 2018-03-29 09:48:21 -04:00
kill_stream.py Return instead of forcibly exiting 2018-06-18 12:38:10 -07:00
kill_time.py more messaging, moved episode check to conditions, correction for 0 watched history for the day. 2018-06-12 09:55:13 -04:00
play_limit.py PlexPy names to tautulli. Agent_id to notifier_id. 2018-03-29 09:48:21 -04:00
readme.md Remove an incorrect condition 2018-06-18 12:09:54 -07:00
time_limit.py PlexPy names to tautulli. Agent_id to notifier_id. 2018-03-29 09:48:21 -04:00
watch_limit.py PlexPy names to tautulli. Agent_id to notifier_id. 2018-03-29 09:48:21 -04:00

README

Killing streams is a Plex Pass only feature. So these scripts will only work for Plex Pass users.

Kill_stream.py examples:

Arguments examples:

Kill the one offending stream with a custom message and send notification to notification agent ID 1

--jbop stream --userId {user_id} --username {username} --sessionId {session_id} --killMessage You did something wrong. --notify 1

Kill all the offending user's streams with a custom message and send notification to notification agent ID 1

--jbop allStreams --userId {user_id} --username {username} --sessionId {session_id} --killMessage You did something wrong. --notify 1

Kill the one offending stream with default message

--jbop stream --userId {user_id} --username {username} --sessionId {session_id}

Condition Examples:

Kill transcodes:

Set Trigger: Playback Start
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]

Kill paused transcodes:

Set Trigger: Playback Paused
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]

Limit User stream count, kill last stream:

Set Trigger: Playback Start
Set Conditions: [ {User Streams} | {is greater than} | {3} ]

IP Whitelist:

Set Trigger: Playback Start
Set Conditions: [ {IP Address} | {is not} | {192.168.0.100 or 192.168.0.101} ]

Kill by platform:

Set Trigger: Playback Start
Set Conditions: [ {Platform} | {is} | {Roku or Android} ]

Kill transcode by library:

Set Trigger: Playback Start
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]
                [ {Library Name} | {is} | {4K Movies} ]

Kill transcode by original resolution:

Set Trigger: Playback Start
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]
                [ {Video Resolution} | {is} | {1080 or 720}]

Kill transcode by bitrate:

Set Trigger: Playback Start
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]
                [ {Bitrate} | {is greater than} | {4000} ]

Kill by hours of the day:

Set Trigger: Playback Start
Set Conditions: [ {Timestamp} | {begins with} | {09 or 10} ]
# Killing any streams from 9 AM to 11 AM

Kill non local streams:

Set Trigger: Playback Start
Set Conditions: [ {Stream location} | {is not} | {lan} ]