mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
more aggressively try ffmpeg when mutagen fails
This commit is contained in:
parent
d7cc000976
commit
5e2785caba
|
@ -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 {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue