mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix blank audio on activity card when changing audio streams
This commit is contained in:
parent
c2185c4ce5
commit
52e608cc43
1 changed files with 8 additions and 5 deletions
|
@ -1644,13 +1644,16 @@ class PmsConnect(object):
|
|||
video_stream_info = audio_stream_info = subtitle_stream_info = None
|
||||
for stream in stream_media_parts_info.getElementsByTagName('Stream'):
|
||||
if helpers.get_xml_attr(stream, 'streamType') == '1':
|
||||
video_stream_info = stream
|
||||
if video_stream_info is None or helpers.get_xml_attr(stream, 'selected') == '1':
|
||||
video_stream_info = stream
|
||||
|
||||
elif helpers.get_xml_attr(stream, 'streamType') == '2' and helpers.get_xml_attr(stream, 'selected') == '1':
|
||||
audio_stream_info = stream
|
||||
elif helpers.get_xml_attr(stream, 'streamType') == '2':
|
||||
if audio_stream_info is None or helpers.get_xml_attr(stream, 'selected') == '1':
|
||||
audio_stream_info = stream
|
||||
|
||||
elif helpers.get_xml_attr(stream, 'streamType') == '3' and helpers.get_xml_attr(stream, 'selected') == '1':
|
||||
subtitle_stream_info = stream
|
||||
elif helpers.get_xml_attr(stream, 'streamType') == '3':
|
||||
if subtitle_stream_info is None or helpers.get_xml_attr(stream, 'selected') == '1':
|
||||
subtitle_stream_info = stream
|
||||
|
||||
video_id = audio_id = subtitle_id = None
|
||||
if video_stream_info:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue