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