From 6e56d259d430e80f80fd595ce27f16355eab7312 Mon Sep 17 00:00:00 2001 From: im85288 Date: Sat, 20 Jun 2015 18:05:54 +0100 Subject: [PATCH] merged normalize string changes from tvtunes addon --- addon.xml | 2 +- resources/lib/Utils.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index 7c9aeb6e..c2153b58 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/Utils.py b/resources/lib/Utils.py index 404109e7..5ea5bcfa 100644 --- a/resources/lib/Utils.py +++ b/resources/lib/Utils.py @@ -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