From 5e2785caba3d459a9678c7f676a68a596ad4e0c8 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 11 Dec 2021 20:31:04 +0100 Subject: [PATCH] more aggressively try ffmpeg when mutagen fails --- copyparty/mtag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/mtag.py b/copyparty/mtag.py index a4099197..0bb1f863 100644 --- a/copyparty/mtag.py +++ b/copyparty/mtag.py @@ -418,7 +418,8 @@ class MTag(object): try: 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: return self.get_ffprobe(abspath) if self.can_ffprobe else {}