unify en la ultima version

This commit is contained in:
Unknown
2018-05-19 15:53:27 -03:00
parent 5ad0f99f42
commit 317007be45

View File

@@ -145,6 +145,7 @@ def normalize(string):
normal = ''.join((c for c in unicodedata.normalize('NFD', unicode(string)) if unicodedata.category(c) != 'Mn'))
return normal
def simplify(string):
#logger.info()
@@ -153,6 +154,7 @@ def simplify(string):
string = string.replace('-',' ').replace('_',' ')
string = re.sub(r'\d+','', string)
string = string.strip()
notilde = normalize(string)
try:
string = notilde.decode()
@@ -417,7 +419,6 @@ def title_format(item):
if lang:
item.title = add_languages(item.title, simple_language)
# Para las busquedas por canal
if item.from_channel != '':
from core import channeltools