2018-06-15 12:32:28 +00:00
|
|
|
## README
|
2018-04-13 01:06:13 +00:00
|
|
|
|
2017-07-19 19:39:17 +00:00
|
|
|
Killing streams is a Plex Pass only feature. So these scripts will only work for Plex Pass users.
|
2018-06-15 12:32:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Kill_stream.py examples:
|
|
|
|
|
2018-06-15 12:40:02 +00:00
|
|
|
#### Arguments examples:
|
2018-06-15 12:32:28 +00:00
|
|
|
|
2018-06-18 19:09:05 +00:00
|
|
|
Kill the one offending stream with a custom message and send notification to notification agent ID 1
|
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
--jbop stream --userId {user_id} --username {username} --sessionId {session_id} --killMessage You did something wrong. --notify 1
|
|
|
|
|
2018-06-18 19:09:05 +00:00
|
|
|
Kill all the offending user's streams with a custom message and send notification to notification agent ID 1
|
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
--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}
|
|
|
|
|
|
|
|
|
2018-06-15 12:40:02 +00:00
|
|
|
#### Condition Examples:
|
2018-06-15 12:32:28 +00:00
|
|
|
|
|
|
|
Kill transcodes:
|
|
|
|
|
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]
|
|
|
|
|
|
|
|
Kill paused transcodes:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Paused
|
|
|
|
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]
|
|
|
|
|
|
|
|
Limit User stream count, kill last stream:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {User Streams} | {is greater than} | {3} ]
|
|
|
|
|
|
|
|
IP Whitelist:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {IP Address} | {is not} | {192.168.0.100 or 192.168.0.101} ]
|
|
|
|
|
|
|
|
Kill by platform:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {Platform} | {is} | {Roku or Android} ]
|
|
|
|
|
|
|
|
Kill transcode by library:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]
|
2018-06-18 19:09:05 +00:00
|
|
|
[ {Library Name} | {is} | {4K Movies} ]
|
2018-06-15 12:32:28 +00:00
|
|
|
|
|
|
|
Kill transcode by original resolution:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]
|
|
|
|
[ {Video Resolution} | {is} | {1080 or 720}]
|
|
|
|
|
|
|
|
Kill transcode by bitrate:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {Transcode Decision} | {is} | {transcode} ]
|
|
|
|
[ {Bitrate} | {is greater than} | {4000} ]
|
|
|
|
|
|
|
|
Kill by hours of the day:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {Timestamp} | {begins with} | {09 or 10} ]
|
2018-06-18 19:09:05 +00:00
|
|
|
# Killing any streams from 9 AM to 11 AM
|
2018-06-15 12:32:28 +00:00
|
|
|
|
|
|
|
Kill non local streams:
|
2018-06-18 19:09:05 +00:00
|
|
|
|
2018-06-15 12:32:28 +00:00
|
|
|
Set Trigger: Playback Start
|
|
|
|
Set Conditions: [ {Stream location} | {is not} | {lan} ]
|