Commit c146c7f3 authored by Chris's avatar Chris

Remove ' (year)' from new MKV titles

parent 1fd9642b
......@@ -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}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment