after fixing 'en' for subtitles, check if rename is still necessary

This commit is contained in:
rolux 2012-10-08 14:45:35 +02:00
parent df003c2b87
commit c1bdd48579

View file

@ -178,7 +178,7 @@ def organize():
# remove '.en'
rename += [[
file['path'], re.sub(regexp, '', file[path_key[file['path']]])
] for file in version['files'] if re.search(regexp, file[path_key[file['path']]])]
] for file in version['files'] if re.search(regexp, file[path_key[file['path']]]) and file['path'] != re.sub(regexp, '', file[path_key[file['path']]])]
for paths in rename:
issues['%s filenames' % (
'incorrect' if path_key[paths[0]] == 'correctedPath' else 'non-canonical'