]> code.delx.au - transcoding/blobdiff - identify-disc-mpv
Work with new mpv
[transcoding] / 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