mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Another temporary fix for media_part_info
This commit is contained in:
parent
1b5a7d78d4
commit
ae5777e612
1 changed files with 8 additions and 7 deletions
|
@ -332,13 +332,14 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, *
|
||||||
media_part_info = media_info['parts'][0]
|
media_part_info = media_info['parts'][0]
|
||||||
|
|
||||||
stream_video = stream_audio = stream_subtitle = False
|
stream_video = stream_audio = stream_subtitle = False
|
||||||
for stream in media_part_info['streams']:
|
if 'streams' in media_part_info:
|
||||||
if not stream_video and stream['type'] == '1':
|
for stream in media_part_info['streams']:
|
||||||
media_part_info.update(stream)
|
if not stream_video and stream['type'] == '1':
|
||||||
if not stream_audio and stream['type'] == '2':
|
media_part_info.update(stream)
|
||||||
media_part_info.update(stream)
|
if not stream_audio and stream['type'] == '2':
|
||||||
if not stream_subtitle and stream['type'] == '3':
|
media_part_info.update(stream)
|
||||||
media_part_info.update(stream)
|
if not stream_subtitle and stream['type'] == '3':
|
||||||
|
media_part_info.update(stream)
|
||||||
|
|
||||||
child_metadata = grandchild_metadata = []
|
child_metadata = grandchild_metadata = []
|
||||||
for key in kwargs.pop('child_keys', []):
|
for key in kwargs.pop('child_keys', []):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue