From 317007be454372cc20f0e67fa66f3eb2141b7cb4 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 19 May 2018 15:53:27 -0300 Subject: [PATCH] unify en la ultima version --- plugin.video.alfa/platformcode/unify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/platformcode/unify.py b/plugin.video.alfa/platformcode/unify.py index 4b19a6ce..3c172fd4 100644 --- a/plugin.video.alfa/platformcode/unify.py +++ b/plugin.video.alfa/platformcode/unify.py @@ -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