Add Live TV history filter button

This commit is contained in:
JonnyWong16 2020-02-17 17:41:28 -08:00
parent 1699fc09cf
commit 81ab9b006d
3 changed files with 9 additions and 1 deletions

View file

@ -1702,8 +1702,10 @@ class WebInterface(object):
custom_where.append(['session_history_metadata.section_id', section_id])
if 'media_type' in kwargs:
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])
if media_type == 'live':
kwargs['live'] = "1"
if 'transcode_decision' in kwargs:
transcode_decision = kwargs.get('transcode_decision', '')
if transcode_decision: