diff --git a/bin/mkvanalyze b/bin/mkvanalyze index 8b2c1ace1e24152c84f4f9b51a0b1a1dee06e58e..86e5f64981d1b206c9ad5413f499d04e4b8ba86a 100755 --- a/bin/mkvanalyze +++ b/bin/mkvanalyze @@ -111,8 +111,9 @@ while IFS= read -rd '' file <&3; do print_filename_once echo "Title Missing" if [[ $flag_f -eq 1 ]]; then - new_title="$(basename "$file")" # get the filename - new_title="${new_title%.*}" # remove the extension + new_title="$(basename "$file")" # get the filename + new_title="${new_title%.*}" # remove the extension + new_title="${new_title/% ([0-9][0-9][0-9][0-9])/}" # remove the year echo -n "Enter a title, or s to skip [$new_title]: " read -e user_title new_title="${user_title:-$new_title}"