mirror of
https://github.com/9001/copyparty.git
synced 2026-11-20 13:26:34 +00:00
minor fixes
This commit is contained in:
1 parent
0a22b1ffb6
commit
0fcb015f9a
2 files changed
+2
-1
No files matched your search
@@ -75,6 +75,7 @@ def parse_ffprobe(txt):
|
||||
continue
|
||||
|
||||
have[typ] = True
|
||||
kvm = []
|
||||
|
||||
if typ == "audio":
|
||||
kvm = [
|
||||
|
||||
+1
-1
@@ -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="
|
||||
|
||||
Reference in new issue
Block a user