Decode byte string for MediaInfo

This commit is contained in:
Bastian Germann 2018-10-16 21:24:47 +02:00
parent 45a1c3d3f1
commit b11079526d

View File

@ -37,5 +37,4 @@ class MediaInfoWrapper(object):
xml = check_output(['mediainfo', '-f', '--Output=XML', '--Inform=OLDXML', filename])
if not xml.startswith(b'<?xml'):
xml = check_output(['mediainfo', '-f', '--Output=XML', filename])
print(xml)
return MediaInfo(xml)
return MediaInfo(xml.decode("utf-8"))