Clean-up
This commit is contained in:
1 parent
0eac041a26
commit
72383592ba
2 files changed
+4
-3
No files matched your search
@@ -250,9 +250,9 @@ var Movie = new Class({
|
|||||||
getUnprefixedTitle: function(t){
|
getUnprefixedTitle: function(t){
|
||||||
if(t.substr(0, 4).toLowerCase() == 'the ')
|
if(t.substr(0, 4).toLowerCase() == 'the ')
|
||||||
t = t.substr(4) + ', The';
|
t = t.substr(4) + ', The';
|
||||||
if(t.substr(0, 3).toLowerCase() == 'an ')
|
else if(t.substr(0, 3).toLowerCase() == 'an ')
|
||||||
t = t.substr(3) + ', An';
|
t = t.substr(3) + ', An';
|
||||||
if(t.substr(0, 2).toLowerCase() == 'a ')
|
else if(t.substr(0, 2).toLowerCase() == 'a ')
|
||||||
t = t.substr(2) + ', A';
|
t = t.substr(2) + ', A';
|
||||||
return t;
|
return t;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -292,7 +292,8 @@ class Renamer(Plugin):
|
|||||||
name_the = movie_name
|
name_the = movie_name
|
||||||
for prefix in ['the ', 'an ', 'a ']:
|
for prefix in ['the ', 'an ', 'a ']:
|
||||||
if prefix == movie_name[:len(prefix)].lower():
|
if prefix == movie_name[:len(prefix)].lower():
|
||||||
name_the = movie_name[len(prefix):] + ', ' + prefix.strip().capitalize()
|
name_the = movie_name[len(prefix):] + ', ' + prefix.strip().capitalize()
|
||||||
|
break
|
||||||
|
|
||||||
replacements = {
|
replacements = {
|
||||||
'ext': 'mkv',
|
'ext': 'mkv',
|
||||||
|
|||||||
Reference in new issue
Block a user