mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Add setting to change video watched completion behaviour
This commit is contained in:
parent
c2abfce8e1
commit
b1dd28e39b
2 changed files with 17 additions and 1 deletions
|
@ -213,6 +213,20 @@
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">Set the percentage for a music track to be considered as listened. Minimum 50, Maximum 95.</p>
|
<p class="help-block">Set the percentage for a music track to be considered as listened. Minimum 50, Maximum 95.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="music_watched_percent">Video Watched Completion Behaviour</label>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-7">
|
||||||
|
<select class="form-control" id="watched_marker" name="watched_marker">
|
||||||
|
<option value="0" ${'selected' if config['watched_marker'] == 0 else ''}>At selected threshold percentage</option>
|
||||||
|
<option value="1" ${'selected' if config['watched_marker'] == 1 else ''}>At final credits marker position</option>
|
||||||
|
<option value="2" ${'selected' if config['watched_marker'] == 2 else ''}>At first credits marker position</option>
|
||||||
|
<option value="3" ${'selected' if config['watched_marker'] == 3 else ''}>Earliest between threshold percent and first credits marker</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="help-block">Decide whether to use end credits markers to determine the 'watched' state of video items. When markers are not available the selected threshold percentage will be used.</p>
|
||||||
|
</div>
|
||||||
<div class="form-group advanced-setting">
|
<div class="form-group advanced-setting">
|
||||||
<label>Flush Temporary Sessions</label>
|
<label>Flush Temporary Sessions</label>
|
||||||
<p class="help-block">
|
<p class="help-block">
|
||||||
|
|
|
@ -199,6 +199,7 @@ _CONFIG_DEFINITIONS = {
|
||||||
'UPGRADE_FLAG': (int, 'Advanced', 0),
|
'UPGRADE_FLAG': (int, 'Advanced', 0),
|
||||||
'VERBOSE_LOGS': (int, 'Advanced', 1),
|
'VERBOSE_LOGS': (int, 'Advanced', 1),
|
||||||
'VERIFY_SSL_CERT': (bool_int, 'Advanced', 1),
|
'VERIFY_SSL_CERT': (bool_int, 'Advanced', 1),
|
||||||
|
'WATCHED_MARKER': (int, 'Monitoring', 3),
|
||||||
'WEBSOCKET_MONITOR_PING_PONG': (int, 'Advanced', 0),
|
'WEBSOCKET_MONITOR_PING_PONG': (int, 'Advanced', 0),
|
||||||
'WEBSOCKET_CONNECTION_ATTEMPTS': (int, 'Advanced', 5),
|
'WEBSOCKET_CONNECTION_ATTEMPTS': (int, 'Advanced', 5),
|
||||||
'WEBSOCKET_CONNECTION_TIMEOUT': (int, 'Advanced', 5),
|
'WEBSOCKET_CONNECTION_TIMEOUT': (int, 'Advanced', 5),
|
||||||
|
@ -298,7 +299,8 @@ SETTINGS = [
|
||||||
'REFRESH_USERS_INTERVAL',
|
'REFRESH_USERS_INTERVAL',
|
||||||
'SHOW_ADVANCED_SETTINGS',
|
'SHOW_ADVANCED_SETTINGS',
|
||||||
'TIME_FORMAT',
|
'TIME_FORMAT',
|
||||||
'TV_WATCHED_PERCENT'
|
'TV_WATCHED_PERCENT',
|
||||||
|
'WATCHED_MARKER'
|
||||||
]
|
]
|
||||||
|
|
||||||
CHECKED_SETTINGS = [
|
CHECKED_SETTINGS = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue