Always return safestring on renamer replace
This commit is contained in:
1 parent
910393d00e
commit
5bea9dd04f
1 file changed
+1
-4
@@ -377,9 +377,6 @@ class Renamer(Plugin):
|
|||||||
if separator:
|
if separator:
|
||||||
final_file_name = final_file_name.replace(' ', separator)
|
final_file_name = final_file_name.replace(' ', separator)
|
||||||
|
|
||||||
final_folder_name = ss(final_folder_name)
|
|
||||||
final_file_name = ss(final_file_name)
|
|
||||||
|
|
||||||
# Move DVD files (no structure renaming)
|
# Move DVD files (no structure renaming)
|
||||||
if group['is_dvd'] and file_type is 'movie':
|
if group['is_dvd'] and file_type is 'movie':
|
||||||
found = False
|
found = False
|
||||||
@@ -878,7 +875,7 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
replaced = re.sub(r"[\x00:\*\?\"<>\|]", '', replaced)
|
replaced = re.sub(r"[\x00:\*\?\"<>\|]", '', replaced)
|
||||||
|
|
||||||
sep = self.conf('foldersep') if folder else self.conf('separator')
|
sep = self.conf('foldersep') if folder else self.conf('separator')
|
||||||
return replaced.replace(' ', ' ' if not sep else sep)
|
return ss(replaced.replace(' ', ' ' if not sep else sep))
|
||||||
|
|
||||||
def replaceDoubles(self, string):
|
def replaceDoubles(self, string):
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user