Actually add live notification parameter
This commit is contained in:
@@ -742,6 +742,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
|||||||
'optimized_version': notify_params['optimized_version'],
|
'optimized_version': notify_params['optimized_version'],
|
||||||
'optimized_version_profile': notify_params['optimized_version_profile'],
|
'optimized_version_profile': notify_params['optimized_version_profile'],
|
||||||
'synced_version': notify_params['synced_version'],
|
'synced_version': notify_params['synced_version'],
|
||||||
|
'live': notify_params['live'],
|
||||||
'stream_local': notify_params['local'],
|
'stream_local': notify_params['local'],
|
||||||
'stream_location': notify_params['location'],
|
'stream_location': notify_params['location'],
|
||||||
'stream_bandwidth': notify_params['bandwidth'],
|
'stream_bandwidth': notify_params['bandwidth'],
|
||||||
|
@@ -1658,6 +1658,7 @@ class PmsConnect(object):
|
|||||||
'optimized_version': int(helpers.get_xml_attr(stream_media_info, 'proxyType') == '42'),
|
'optimized_version': int(helpers.get_xml_attr(stream_media_info, 'proxyType') == '42'),
|
||||||
'optimized_version_title': helpers.get_xml_attr(stream_media_info, 'title'),
|
'optimized_version_title': helpers.get_xml_attr(stream_media_info, 'title'),
|
||||||
'synced_version': 1 if sync_id else 0,
|
'synced_version': 1 if sync_id else 0,
|
||||||
|
'live': int(helpers.get_xml_attr(session, 'live') == '1'),
|
||||||
'indexes': int(indexes == 'sd'),
|
'indexes': int(indexes == 'sd'),
|
||||||
'bif_thumb': bif_thumb,
|
'bif_thumb': bif_thumb,
|
||||||
'subtitles': 1 if subtitle_id and subtitle_selected else 0
|
'subtitles': 1 if subtitle_id and subtitle_selected else 0
|
||||||
@@ -1721,7 +1722,6 @@ class PmsConnect(object):
|
|||||||
'audio_channel_layout': common.AUDIO_CHANNELS.get(audio_channels, audio_channels),
|
'audio_channel_layout': common.AUDIO_CHANNELS.get(audio_channels, audio_channels),
|
||||||
'channel_icon': helpers.get_xml_attr(session, 'sourceIcon'),
|
'channel_icon': helpers.get_xml_attr(session, 'sourceIcon'),
|
||||||
'channel_title': helpers.get_xml_attr(session, 'sourceTitle'),
|
'channel_title': helpers.get_xml_attr(session, 'sourceTitle'),
|
||||||
'live': int(helpers.get_xml_attr(session, 'live') == '1'),
|
|
||||||
'extra_type': helpers.get_xml_attr(session, 'extraType'),
|
'extra_type': helpers.get_xml_attr(session, 'extraType'),
|
||||||
'sub_type': helpers.get_xml_attr(session, 'subtype')
|
'sub_type': helpers.get_xml_attr(session, 'subtype')
|
||||||
}
|
}
|
||||||
@@ -1790,7 +1790,7 @@ class PmsConnect(object):
|
|||||||
next((p for p in source_media_part_streams if p['type'] == '3'), source_subtitle_details))
|
next((p for p in source_media_part_streams if p['type'] == '3'), source_subtitle_details))
|
||||||
|
|
||||||
# Overrides for live sessions
|
# Overrides for live sessions
|
||||||
if metadata_details.get('live') and transcode_session:
|
if stream_details['live'] and transcode_session:
|
||||||
stream_details['stream_container_decision'] = 'transcode'
|
stream_details['stream_container_decision'] = 'transcode'
|
||||||
stream_details['stream_container'] = transcode_details['transcode_container']
|
stream_details['stream_container'] = transcode_details['transcode_container']
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user