From 0fcb015f9ae4a4df7d03180350a4c3961959a8da Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 28 May 2021 05:16:28 +0200 Subject: [PATCH] minor fixes --- copyparty/mtag.py | 1 + copyparty/th_srv.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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="