minor fixes

This commit is contained in:
ed 2021-05-28 05:16:28 +02:00
parent 0a22b1ffb6
commit 0fcb015f9a
2 changed files with 2 additions and 1 deletions

View file

@ -75,6 +75,7 @@ def parse_ffprobe(txt):
continue
have[typ] = True
kvm = []
if typ == "audio":
kvm = [

View file

@ -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="