fix a bug that would keep some subtitle files from being renamed
This commit is contained in:
parent
52433b9493
commit
df003c2b87
2 changed files with 4 additions and 4 deletions
|
@ -177,8 +177,8 @@ def organize():
|
|||
rename = [paths for paths in rename if not re.search(regexp, paths[1])]
|
||||
# remove '.en'
|
||||
rename += [[
|
||||
file['path'], re.sub(regexp, '', file['path'])
|
||||
] for file in version['files'] if re.search(regexp, file['path'])]
|
||||
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 paths in rename:
|
||||
issues['%s filenames' % (
|
||||
'incorrect' if path_key[paths[0]] == 'correctedPath' else 'non-canonical'
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"url": "https://0xdb.org/api/",
|
||||
"username": "",
|
||||
"volumes": {
|
||||
"cinema": "/Volumes/rolux/Movies/Cinema/"
|
||||
"cinema": "/Users/rolux/Movies/Cinema/"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue