mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix Live TV transcode details (Fixes Tautulli/Tautulli-Issues#45)
This commit is contained in:
parent
32df79bb83
commit
833937eced
1 changed files with 5 additions and 1 deletions
|
@ -1454,6 +1454,8 @@ class PmsConnect(object):
|
|||
|
||||
# Get the transcode details
|
||||
if session.getElementsByTagName('TranscodeSession'):
|
||||
transcode_session = True
|
||||
|
||||
transcode_info = session.getElementsByTagName('TranscodeSession')[0]
|
||||
|
||||
transcode_progress = helpers.get_xml_attr(transcode_info, 'progress')
|
||||
|
@ -1482,6 +1484,8 @@ class PmsConnect(object):
|
|||
'throttled': '1' if helpers.get_xml_attr(transcode_info, 'throttled') == '1' else '0' # Keep for backwards compatibility
|
||||
}
|
||||
else:
|
||||
transcode_session = False
|
||||
|
||||
transcode_details = {'transcode_key': '',
|
||||
'transcode_throttled': 0,
|
||||
'transcode_progress': 0,
|
||||
|
@ -1795,7 +1799,7 @@ class PmsConnect(object):
|
|||
next((p for p in source_media_part_streams if p['type'] == '3'), source_subtitle_details))
|
||||
|
||||
# Overrides for live sessions
|
||||
if metadata_details.get('live') and transcode_decision == 'transcode':
|
||||
if metadata_details.get('live') and transcode_session:
|
||||
stream_details['stream_container_decision'] = 'transcode'
|
||||
stream_details['stream_container'] = transcode_details['transcode_container']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue