From d8e753abbb6d59aa1dd9c5ee1f071014dfd20eac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 4 Oct 2021 23:09:55 +0200 Subject: [PATCH] omit fraction of length --- indexmeta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}*}" -- 2.39.2