diff --git a/copyparty/mtag.py b/copyparty/mtag.py index ad14cb38..a9bda4c3 100644 --- a/copyparty/mtag.py +++ b/copyparty/mtag.py @@ -75,6 +75,7 @@ def parse_ffprobe(txt): continue have[typ] = True + kvm = [] if typ == "audio": kvm = [ diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index b868fad6..7d34cc33 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -254,7 +254,7 @@ class ThumbSrv(object): def conv_ffmpeg(self, abspath, tpath): ret, _ = ffprobe(abspath) - dur = ret[".dur"][1] + dur = ret[".dur"][1] if ".dur" in ret else 4 seek = "{:.0f}".format(dur / 3) scale = "scale={0}:{1}:force_original_aspect_ratio="