Remove obsolete function in utils.py

This commit is contained in:
croneter 2020-12-27 13:17:56 +01:00
parent 1f2b19ce42
commit 4cf7c753e0

View file

@ -592,27 +592,6 @@ def compare_version(current, minimum):
return curr_patch >= min_patch return curr_patch >= min_patch
def normalize_string(text):
"""
For theme media, do not modify unless modified in TV Tunes
"""
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
text = text.rstrip('.')
text = try_encode(normalize('NFKD', str(text, 'utf-8')))
return text
def normalize_nodes(text): def normalize_nodes(text):
""" """
For video nodes. Returns unicode For video nodes. Returns unicode