Improved checking of live tv session websocket events

This commit is contained in:
JonnyWong16 2018-05-26 10:14:36 -07:00
commit aa365eb6a3
4 changed files with 24 additions and 2 deletions

View file

@ -1659,6 +1659,7 @@ class PmsConnect(object):
'optimized_version_title': helpers.get_xml_attr(stream_media_info, 'title'),
'synced_version': 1 if sync_id else 0,
'live': int(helpers.get_xml_attr(session, 'live') == '1'),
'live_uuid': helpers.get_xml_attr(stream_media_info, 'uuid'),
'indexes': int(indexes == 'sd'),
'bif_thumb': bif_thumb,
'subtitles': 1 if subtitle_id and subtitle_selected else 0