From f97b078b5e7fde01e2cbe97585ed58a4f8773fc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 5 Oct 2021 15:29:03 +0200 Subject: [PATCH] bugfix: ffprobe invocation --- indexmeta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexmeta.sh b/indexmeta.sh index 1cd3ff1..7b37209 100644 --- a/indexmeta.sh +++ b/indexmeta.sh @@ -17,7 +17,7 @@ meta_line() { video="$1" [ "${video%.part}" = "$video" -a -s "$video" ] || return 0 - meta="$(printf \\n; ffprobe -show_entries format=duration:stream=width,height 2>&-)" + probe="$(printf \\n; ffprobe -show_entries format=duration:stream=width,height "$video" 2>&-)" l="${probe#*duration=}" l="${l%%${BR}*}" l="${l%.*}" w="${probe#*width=}" w="${w%%${BR}*}" h="${probe#*height=}" h="${h%%${BR}*}" -- 2.39.2