X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=indexmeta.sh;h=7b3720990a9d2a58e3e4a6db94e3ec07490a26c2;hb=f97b078b5e7fde01e2cbe97585ed58a4f8773fc9;hp=1cd3ff13fb099dd2a226802c940b2767c1322658;hpb=d8e753abbb6d59aa1dd9c5ee1f071014dfd20eac;p=serve0 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}*}"