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 continue
have[typ] = True have[typ] = True
kvm = []
if typ == "audio": if typ == "audio":
kvm = [ kvm = [

View file

@ -254,7 +254,7 @@ class ThumbSrv(object):
def conv_ffmpeg(self, abspath, tpath): def conv_ffmpeg(self, abspath, tpath):
ret, _ = ffprobe(abspath) ret, _ = ffprobe(abspath)
dur = ret[".dur"][1] dur = ret[".dur"][1] if ".dur" in ret else 4
seek = "{:.0f}".format(dur / 3) seek = "{:.0f}".format(dur / 3)
scale = "scale={0}:{1}:force_original_aspect_ratio=" scale = "scale={0}:{1}:force_original_aspect_ratio="