mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 11:38:36 -07:00
Clean up scripts
This commit is contained in:
parent
e321479712
commit
3d6f89d309
5 changed files with 33 additions and 54 deletions
|
@ -80,38 +80,29 @@ from plexpy import helpers
|
|||
<p class="help-block">Set a custom body.</p>
|
||||
</div>
|
||||
%if agent['name'] == 'Scripts':
|
||||
<div class="form-group">
|
||||
<label for="test_script">Script path</label>
|
||||
<select class="form-control" id="test_script" name="test_script" >
|
||||
% for key, value in sorted(data[1]['select_options'].iteritems()):
|
||||
<option value="${key}">${value}</option>
|
||||
% endfor
|
||||
</select>
|
||||
<p class="help-block">Pick your script</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="test_script_action">Script action</label>
|
||||
<select class="form-control" id="test_script_action" name="test_script_action">
|
||||
<option value=""></option>
|
||||
<option value="buffer">Buffer warning</option>
|
||||
<option value="watched">Watched</option>
|
||||
<option value="play">Playback start</option>
|
||||
<option value="pause">Playback stopp</option>
|
||||
<option value="resume">Playback resume</option>
|
||||
<option value="stop">Playback stop</option>
|
||||
<option value="extdown">Plex Server Remote Down</option>
|
||||
<option value="extup">Plex Server Remote Up</option>
|
||||
<option value="intdown">Plex Server Down</option>
|
||||
<option value="intup">Plex Server Up</option>
|
||||
<option value="pause">Playback pause</option>
|
||||
<option value="resume">Playback resume</option>
|
||||
<option value="watched">Watched</option>
|
||||
<option value="buffer">Buffer warnings</option>
|
||||
<option value="created">Recently added</option>
|
||||
<option value="extdown">Plex remote access down</option>
|
||||
<option value="intdown">Plex server down</option>
|
||||
<option value="extup">Plex remote access back up</option>
|
||||
<option value="intup">Plex server back up</option>
|
||||
</select>
|
||||
<p class="help-block">Pick your action</p>
|
||||
<p class="help-block">Choose a notification action.</p>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="test_script_args">Script args</label>
|
||||
<input class="form-control" type="text" id="test_script_args" name="test_script_args" value="">
|
||||
<p class="help-block">Set a custom script args: -zomg --x.</p>
|
||||
<p class="help-block">Set custom script arguments: -zomg --x.</p>
|
||||
</div>
|
||||
% endif
|
||||
<div class="form-group">
|
||||
|
@ -185,7 +176,6 @@ from plexpy import helpers
|
|||
subject: $('#test_subject').val(),
|
||||
body: $('#test_body').val(),
|
||||
notify_action: $('#test_script_action').val(),
|
||||
script: $('#test_script').val(),
|
||||
script_args: $('#test_script_args').val() },
|
||||
cache: false,
|
||||
async: true,
|
||||
|
@ -196,13 +186,7 @@ from plexpy import helpers
|
|||
});
|
||||
});
|
||||
|
||||
$('#pushbullet_apikey, #pushover_apitoken').on('change', function () {
|
||||
doAjaxCall('set_notification_config', $(this), 'tabs', true);
|
||||
reloadModal();
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#scripts_folder').on('change', function () {
|
||||
$('#pushbullet_apikey, #pushover_apitoken, #scripts_folder').on('change', function () {
|
||||
doAjaxCall('set_notification_config', $(this), 'tabs', true);
|
||||
reloadModal();
|
||||
return false;
|
||||
|
|
|
@ -1014,6 +1014,14 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>{streams}</strong></td>
|
||||
<td>The number of concurrent streams.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{action}</strong></td>
|
||||
<td>The action that triggered the notification.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{user}</strong></td>
|
||||
<td>The username of the person streaming.</td>
|
||||
|
@ -1126,14 +1134,6 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
|
|||
<td><strong>{transcode_audio_channels}</strong></td>
|
||||
<td>The audio channels of the transcoded media.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{streams}</strong></td>
|
||||
<td>The number of concurrent streams.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{action}</strong></td>
|
||||
<td>The action that trigged the notification.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="notification-params">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue