Merge pull request #3131 from mano3m/develop_prefix

Add 'A' and 'An' to 'The' prefix
This commit is contained in:
Ruud Burger
2014-04-20 10:20:25 +02:00
3 changed files with 12 additions and 6 deletions
+4 -2
View File
@@ -290,8 +290,10 @@ 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()
break
replacements = {
'ext': 'mkv',