Temporary fix for incorrect source media info

This commit is contained in:
JonnyWong16
2017-08-19 20:48:01 -07:00
parent 1f7e8b4d9a
commit be9a1dcf06
2 changed files with 8 additions and 5 deletions

View File

@@ -881,6 +881,9 @@ class PmsConnect(object):
'video_framerate': helpers.get_xml_attr(media, 'videoFrameRate'),
'audio_codec': helpers.get_xml_attr(media, 'audioCodec'),
'audio_channels': helpers.get_xml_attr(media, 'audioChannels'),
'aspect_ratio': helpers.get_xml_attr(media, 'aspectRatio'),
'width': helpers.get_xml_attr(media, 'width'),
'height': helpers.get_xml_attr(media, 'height'),
'file': helpers.get_xml_attr(media.getElementsByTagName('Part')[0], 'file'),
'file_size': helpers.get_xml_attr(media.getElementsByTagName('Part')[0], 'size'),
}