mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 12:59:42 -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,12 +1644,15 @@ class PmsConnect(object):
|
||||||
video_stream_info = audio_stream_info = subtitle_stream_info = None
|
video_stream_info = audio_stream_info = subtitle_stream_info = None
|
||||||
for stream in stream_media_parts_info.getElementsByTagName('Stream'):
|
for stream in stream_media_parts_info.getElementsByTagName('Stream'):
|
||||||
if helpers.get_xml_attr(stream, 'streamType') == '1':
|
if helpers.get_xml_attr(stream, 'streamType') == '1':
|
||||||
|
if video_stream_info is None or helpers.get_xml_attr(stream, 'selected') == '1':
|
||||||
video_stream_info = stream
|
video_stream_info = stream
|
||||||
|
|
||||||
elif helpers.get_xml_attr(stream, 'streamType') == '2' and helpers.get_xml_attr(stream, 'selected') == '1':
|
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
|
audio_stream_info = stream
|
||||||
|
|
||||||
elif helpers.get_xml_attr(stream, 'streamType') == '3' and helpers.get_xml_attr(stream, 'selected') == '1':
|
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
|
subtitle_stream_info = stream
|
||||||
|
|
||||||
video_id = audio_id = subtitle_id = None
|
video_id = audio_id = subtitle_id = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue