]> git.plutz.net Git - serve0/blobdiff - indexmeta.sh
unified table function
[serve0] / indexmeta.sh
index 50d83ef1b867f30e15aeb0f6861c5fd53de6cc32..7b3720990a9d2a58e3e4a6db94e3ec07490a26c2 100644 (file)
@@ -17,8 +17,8 @@ meta_line() {
   video="$1"
   [ "${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}*}"
+  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}*}"