From a0b3ee818641675f7d048aa196314c7157de2196 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 19 Sep 2014 10:39:54 +0200 Subject: [PATCH] Safe encode path names in renamer fix #3425 --- couchpotato/core/plugins/renamer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/renamer.py b/couchpotato/core/plugins/renamer.py index 4c7aa3bf..ad2199d4 100755 --- a/couchpotato/core/plugins/renamer.py +++ b/couchpotato/core/plugins/renamer.py @@ -266,7 +266,7 @@ class Renamer(Plugin): category_label = category['label'] if category['destination'] and len(category['destination']) > 0 and category['destination'] != 'None': - destination = category['destination'] + destination = sp(category['destination']) log.debug('Setting category destination for "%s": %s' % (media_title, destination)) else: log.debug('No category destination found for "%s"' % media_title) @@ -369,6 +369,9 @@ class Renamer(Plugin): if 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) if group['is_dvd'] and file_type is 'movie': found = False