mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Merge pull request #1354 from samwiseg0/fix/blank_audio
Fix blank audio on activity card when changing audio streams during direct play
This commit is contained in:
commit
3015740c3e
1 changed files with 8 additions and 5 deletions
|
@ -1645,13 +1645,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