Fix get_history when media_type == 'all'

This commit is contained in:
JonnyWong16 2021-12-04 13:06:53 -08:00
parent d5d3766f90
commit 9432fee1ba
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -2015,7 +2015,7 @@ class WebInterface(object):
custom_where.append(['session_history.section_id', section_id]) custom_where.append(['session_history.section_id', section_id])
if 'media_type' in kwargs: if 'media_type' in kwargs:
media_type = helpers.split_strip(kwargs.get('media_type', '')) media_type = helpers.split_strip(kwargs.get('media_type', ''))
if media_type: if media_type and 'all' not in media_type:
custom_where.append(['media_type_live', media_type]) custom_where.append(['media_type_live', media_type])
if 'transcode_decision' in kwargs: if 'transcode_decision' in kwargs:
transcode_decision = helpers.split_strip(kwargs.get('transcode_decision', '')) transcode_decision = helpers.split_strip(kwargs.get('transcode_decision', ''))