merged normalize string changes from tvtunes addon

This commit is contained in:
im85288 2015-06-20 18:05:54 +01:00
parent 5e53884030
commit 6e56d259d4
2 changed files with 6 additions and 1 deletions

View file

@ -167,6 +167,11 @@ def normalize_string(text):
text = text.replace(":", "")
text = text.replace("/", "-")
text = text.replace("\\", "-")
text = text.replace("<", "")
text = text.replace(">", "")
text = text.replace("*", "")
text = text.replace("?", "")
text = text.replace('|', "")
text = text.strip()
# Remove dots from the last character as windows can not have directories
# with dots at the end