From f9b855ea1dbb29ef1348792cab7d246be29d1cf1 Mon Sep 17 00:00:00 2001 From: Katya Vera <79790837+katyavera@users.noreply.github.com> Date: Sun, 28 Feb 2021 15:29:02 +0100 Subject: [PATCH] Allow spaces in the .aax filename --- AAXtoMP3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index e9f4eeb..6c24d2f 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -550,7 +550,7 @@ do # Display the total length of the audiobook in format hh:mm:ss # 10#$var force base-10 interpretation. By default it's base-8, so values like 08 or 09 are not octal numbers - total_length="$(ffprobe -v error -activation_bytes "${auth_code}" -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 ${aax_file} | cut -d . -f 1)" + total_length="$(ffprobe -v error -activation_bytes "${auth_code}" -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "${aax_file}" | cut -d . -f 1)" hours="$((total_length/3600))" if [ "$((hours<10))" = "1" ]; then hours="0$hours"; fi minutes="$((total_length/60-60*10#$hours))"