Add examples for paused streams

Add a few examples for usage of the new paused stream functionality.
This commit is contained in:
Landon Abney 2018-06-18 13:30:41 -07:00
parent c976a3dfb1
commit 75b4fa3229
No known key found for this signature in database
GPG Key ID: 4414384AEEE3FB2B
2 changed files with 26 additions and 20 deletions

View File

@ -39,25 +39,6 @@ Taultulli > Settings > Notification Agents > New Script > Script Arguments:
Save
Close
Examples:
Kill all WAN streams paused longer than 20 minutes, checking every 30 seconds
Script Timeout: 0
Triggers: Playback Pause
Conditions: Stream Location is not LAN
Arguments (Playback Start): --jbop paused --sessionId {session_id}
--limit 1200 --interval 30
--killMessage Your stream was paused for over 20 minutes and has been
automatically stopped for you.
Notes:
* Any of these can have "--notify X" added to them, where X is the
ID shown in Tautulli for a Notification agent, if specified it will send a
message there when a stream is terminated.
* Arguments should all be on one line in Tautulli, they are split here for
easier reading.
"""
import requests

View File

@ -14,6 +14,31 @@ Arguments:
--jbop stream --username {username} --sessionId {session_id} --killMessage Transcoding streams are not allowed.
```
### Kill non-local streams paused for a long time
_The default values will kill anything paused for over 20 minutes, checking every 30 seconds._
Script Timeout: 0 _**Important!**_
Triggers: Playback Paused
Conditions: \[ `Stream Local` | `is not` | `1` \]
Arguments:
```
--jbop paused --sessionId {session_id} --killMessage Your stream was paused for over 20 minutes and has been automatically stopped for you.
```
### Kill streams paused for a custom time
_This is an example of customizing the paused stream monitoring to check every 15 seconds, and kill any stream paused for over 5 minutes._
Script Timeout: 0 _**Important!**_
Triggers: Playback Paused
Arguments:
```
--jbop paused --interval 15 --limit 300 --sessionId {session_id} --killMessage Your stream was paused for over 5 minutes and has been automatically stopped for you.
```
### Kill paused transcodes
Triggers: Playback Paused
@ -92,7 +117,7 @@ Arguments:
### Kill by hours of the day
Kills any streams during 9 AM to 10 AM
_Kills any streams during 9 AM to 10 AM._
Triggers: Playback Start
Conditions: \[ `Timestamp` | `begins with` | `09 or 10` \]