Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #500 from itofzo/dev_revert__format_string

SanitizeFileName also removes / and \ bad for creating subfolders
  • Loading branch information...
commit 6b1b8c45b64f10828ad2a6c6eeb33998cdd488f7 2 parents 334f156 + 2cd2f8b
@midgetspy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 sickbeard/tv.py
View
6 sickbeard/tv.py
@@ -1506,10 +1506,10 @@ def _format_string(self, pattern, replace_map):
# do the replacements
for cur_replacement in sorted(replace_map.keys(), reverse=True):
- result_name = result_name.replace(cur_replacement, replace_map[cur_replacement])
- result_name = result_name.replace(cur_replacement.lower(), replace_map[cur_replacement].lower())
+ result_name = result_name.replace(cur_replacement, helpers.sanitizeFileName(replace_map[cur_replacement]))
+ result_name = result_name.replace(cur_replacement.lower(), helpers.sanitizeFileName(replace_map[cur_replacement].lower()))
- return helpers.sanitizeFileName(result_name)
+ return result_name
def _format_pattern(self, pattern=None, multi=None):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.