mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-31 03:50:11 -07:00
Fix check for media info before parsing xml
This commit is contained in:
parent
31b6ff003a
commit
27183483a9
1 changed files with 1 additions and 1 deletions
|
@ -871,7 +871,7 @@ class PmsConnect(object):
|
|||
else:
|
||||
return None
|
||||
|
||||
if get_media_info:
|
||||
if get_media_info and metadata_main.getElementsByTagName('Media'):
|
||||
item_media = metadata_main.getElementsByTagName('Media')[0]
|
||||
media_info = {'container': helpers.get_xml_attr(item_media, 'container'),
|
||||
'bitrate': helpers.get_xml_attr(item_media, 'bitrate'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue