Add missing user concurrent stream script
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" data-size="small" data-id="${data['id']}" data-config-name="${data['config_prefix']}_on_concurrent" ${helpers.checked(data['on_concurrent'])} class="toggle-switches">
|
<input type="checkbox" data-size="small" data-id="${data['id']}" data-config-name="${data['config_prefix']}_on_concurrent" ${helpers.checked(data['on_concurrent'])} class="toggle-switches">
|
||||||
Notify on user concurrent stream
|
Notify on user concurrent streams
|
||||||
</label>
|
</label>
|
||||||
<p class="help-block">Trigger notification when a user has concurrent streams.</p>
|
<p class="help-block">Trigger notification when a user has concurrent streams.</p>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -2108,6 +2108,9 @@ class Scripts(object):
|
|||||||
elif notify_action == 'pmsupdate':
|
elif notify_action == 'pmsupdate':
|
||||||
script = plexpy.CONFIG.SCRIPTS_ON_PMSUPDATE_SCRIPT
|
script = plexpy.CONFIG.SCRIPTS_ON_PMSUPDATE_SCRIPT
|
||||||
|
|
||||||
|
elif notify_action == 'concurrent':
|
||||||
|
script = plexpy.CONFIG.SCRIPTS_ON_CONCURRENT_SCRIPT
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# For manual scripts
|
# For manual scripts
|
||||||
script = kwargs.get('script', '')
|
script = kwargs.get('script', '')
|
||||||
@@ -2284,6 +2287,13 @@ class Scripts(object):
|
|||||||
'description': 'Choose the script for Plex update available.',
|
'description': 'Choose the script for Plex update available.',
|
||||||
'input_type': 'select',
|
'input_type': 'select',
|
||||||
'select_options': self.list_scripts()
|
'select_options': self.list_scripts()
|
||||||
|
},
|
||||||
|
{'label': 'User Concurrent Streams',
|
||||||
|
'value': plexpy.CONFIG.SCRIPTS_ON_CONCURRENT_SCRIPT,
|
||||||
|
'name': 'scripts_on_concurrent_script',
|
||||||
|
'description': 'Choose the script for user concurrent streams.',
|
||||||
|
'input_type': 'select',
|
||||||
|
'select_options': self.list_scripts()
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user