Add 'A' and 'An' to 'The' prefix

This was bothering me for a long time now ;) We do put The at the end
but not A nor An. Fixed now :)
This commit is contained in:
mano3m
2014-04-19 22:20:17 +02:00
parent 26f5e8aa4b
commit 0eac041a26
3 changed files with 11 additions and 6 deletions
+3 -2
View File
@@ -290,8 +290,9 @@ class Renamer(Plugin):
# Put 'The' at the end
name_the = movie_name
if movie_name[:4].lower() == 'the ':
name_the = movie_name[4:] + ', The'
for prefix in ['the ', 'an ', 'a ']:
if prefix == movie_name[:len(prefix)].lower():
name_the = movie_name[len(prefix):] + ', ' + prefix.strip().capitalize()
replacements = {
'ext': 'mkv',