more aggressively try ffmpeg when mutagen fails

This commit is contained in:
ed 2021-12-11 20:31:04 +01:00
parent d7cc000976
commit 5e2785caba

View file

@ -418,7 +418,8 @@ class MTag(object):
try: try:
md = mutagen.File(fsenc(abspath), easy=True) md = mutagen.File(fsenc(abspath), easy=True)
x = md.info.length if not md.info.length and not md.info.codec:
raise Exception()
except Exception as ex: except Exception as ex:
return self.get_ffprobe(abspath) if self.can_ffprobe else {} return self.get_ffprobe(abspath) if self.can_ffprobe else {}