mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add Live TV history filter button
This commit is contained in:
parent
1699fc09cf
commit
81ab9b006d
3 changed files with 9 additions and 1 deletions
|
@ -44,6 +44,9 @@
|
||||||
<label class="btn btn-dark">
|
<label class="btn btn-dark">
|
||||||
<input type="radio" name="media_type-filter" id="history-track" value="track" autocomplete="off"> Music
|
<input type="radio" name="media_type-filter" id="history-track" value="track" autocomplete="off"> Music
|
||||||
</label>
|
</label>
|
||||||
|
<label class="btn btn-dark">
|
||||||
|
<input type="radio" name="media_type-filter" id="history-live" value="live" autocomplete="off"> Live TV
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-dark refresh-history-button" id="refresh-history-list"><i class="fa fa-refresh"></i> Refresh history</button>
|
<button class="btn btn-dark refresh-history-button" id="refresh-history-list"><i class="fa fa-refresh"></i> Refresh history</button>
|
||||||
|
|
|
@ -168,6 +168,9 @@ DOCUMENTATION :: END
|
||||||
<label class="btn btn-dark">
|
<label class="btn btn-dark">
|
||||||
<input type="radio" name="media_type-filter" id="history-track" value="track" autocomplete="off"> Music
|
<input type="radio" name="media_type-filter" id="history-track" value="track" autocomplete="off"> Music
|
||||||
</label>
|
</label>
|
||||||
|
<label class="btn btn-dark">
|
||||||
|
<input type="radio" name="media_type-filter" id="history-live" value="live" autocomplete="off"> Live TV
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-dark refresh-history-button" id="refresh-history-list"><i class="fa fa-refresh"></i> Refresh history</button>
|
<button class="btn btn-dark refresh-history-button" id="refresh-history-list"><i class="fa fa-refresh"></i> Refresh history</button>
|
||||||
|
|
|
@ -1702,8 +1702,10 @@ class WebInterface(object):
|
||||||
custom_where.append(['session_history_metadata.section_id', section_id])
|
custom_where.append(['session_history_metadata.section_id', section_id])
|
||||||
if 'media_type' in kwargs:
|
if 'media_type' in kwargs:
|
||||||
media_type = kwargs.get('media_type', '')
|
media_type = kwargs.get('media_type', '')
|
||||||
if media_type != 'all':
|
if media_type not in ('all', 'live'):
|
||||||
custom_where.append(['session_history.media_type', media_type])
|
custom_where.append(['session_history.media_type', media_type])
|
||||||
|
if media_type == 'live':
|
||||||
|
kwargs['live'] = "1"
|
||||||
if 'transcode_decision' in kwargs:
|
if 'transcode_decision' in kwargs:
|
||||||
transcode_decision = kwargs.get('transcode_decision', '')
|
transcode_decision = kwargs.get('transcode_decision', '')
|
||||||
if transcode_decision:
|
if transcode_decision:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue