forked from openlp/openlp
Decode byte string for MediaInfo
This commit is contained in:
parent
45a1c3d3f1
commit
b11079526d
@ -37,5 +37,4 @@ class MediaInfoWrapper(object):
|
|||||||
xml = check_output(['mediainfo', '-f', '--Output=XML', '--Inform=OLDXML', filename])
|
xml = check_output(['mediainfo', '-f', '--Output=XML', '--Inform=OLDXML', filename])
|
||||||
if not xml.startswith(b'<?xml'):
|
if not xml.startswith(b'<?xml'):
|
||||||
xml = check_output(['mediainfo', '-f', '--Output=XML', filename])
|
xml = check_output(['mediainfo', '-f', '--Output=XML', filename])
|
||||||
print(xml)
|
return MediaInfo(xml.decode("utf-8"))
|
||||||
return MediaInfo(xml)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user