mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
minor fixes
This commit is contained in:
parent
0a22b1ffb6
commit
0fcb015f9a
|
@ -75,6 +75,7 @@ def parse_ffprobe(txt):
|
|||
continue
|
||||
|
||||
have[typ] = True
|
||||
kvm = []
|
||||
|
||||
if typ == "audio":
|
||||
kvm = [
|
||||
|
|
|
@ -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="
|
||||
|
|
Loading…
Reference in a new issue