]> git.plutz.net Git - serve0/commitdiff
omit fraction of length
authorPaul Hänsch <paul@plutz.net>
Mon, 4 Oct 2021 21:09:55 +0000 (23:09 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 4 Oct 2021 21:09:55 +0000 (23:09 +0200)
indexmeta.sh

index 50d83ef1b867f30e15aeb0f6861c5fd53de6cc32..1cd3ff13fb099dd2a226802c940b2767c1322658 100644 (file)
@@ -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}*}"