ad682f3d1b
The only way that this could ever be hit is if the stream is still active on the server, but the state is NOT one of paused, playing, or buffering. In case Plex decides to change the states in the future having this working properly is a good idea ;) |
||
---|---|---|
.. | ||
kill_else_if_buffering.py | ||
kill_stream.py | ||
kill_time.py | ||
play_limit.py | ||
readme.md | ||
time_limit.py | ||
watch_limit.py |
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} ]