mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
minor fixes
This commit is contained in:
parent
0a22b1ffb6
commit
0fcb015f9a
|
@ -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 = [
|
||||||
|
|
|
@ -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="
|
||||||
|
|
Loading…
Reference in a new issue