]> code.delx.au - transcoding/commitdiff
Work with new mpv
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 15 Mar 2017 11:23:40 +0000 (22:23 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Wed, 15 Mar 2017 11:23:40 +0000 (22:23 +1100)
identify-disc-mpv

index 440e2494c0b7b0c2d2817b34a48fe242771d6c29..ed2f0102914c4a9cc09c24a42af7017c55a26af9 100755 (executable)
@@ -39,7 +39,7 @@ function get_highest_title {
 function get_length {
     mpv_wrap \
         "$device_param" "$device_path" "${device_scheme}://${1}" \
-        --term-playing-msg='TITLE_LENGTH=${length}' \
+        --term-playing-msg='TITLE_LENGTH=${duration}' \
     | grep 'TITLE_LENGTH' \
     | head -n1 \
     | cut -d'=' -f2