From: Paul Hänsch Date: Mon, 4 Oct 2021 21:09:55 +0000 (+0200) Subject: omit fraction of length X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=d8e753abbb6d59aa1dd9c5ee1f071014dfd20eac;p=serve0 omit fraction of length --- diff --git a/indexmeta.sh b/indexmeta.sh index 50d83ef..1cd3ff1 100644 --- a/indexmeta.sh +++ b/indexmeta.sh @@ -18,7 +18,7 @@ meta_line() { [ "${video%.part}" = "$video" -a -s "$video" ] || return 0 meta="$(printf \\n; ffprobe -show_entries format=duration:stream=width,height 2>&-)" - l="${probe#*duration=}" l="${l%%${BR}*}" + l="${probe#*duration=}" l="${l%%${BR}*}" l="${l%.*}" w="${probe#*width=}" w="${w%%${BR}*}" h="${probe#*height=}" h="${h%%${BR}*}"