Commit 95588a55 authored by Chris's avatar Chris

Improve how the mkvanalyze tool handles TV episode titles

Currently only works with 2 digits season and episode numbers. Also doesn't work
with multi-episode files.
parent 2e50f72f
......@@ -128,6 +128,12 @@ while IFS= read -rd '' file <&3; do
new_title="$bts_prefix$new_title"
fi
# If this is a TV episode, remove the show name and season/episode
# number
if [[ "$new_title" =~ S[0-9]+E[0-9]+ ]]; then
new_title="${new_title##*S[0-9][0-9]E[0-9][0-9] - }"
fi
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