From 3ac4afdb4cd06ea6577070184e9ee6bf5179b59f Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Thu, 12 Oct 2017 15:25:31 -0500 Subject: [PATCH] Update allcalidad.py --- plugin.video.alfa/channels/allcalidad.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/channels/allcalidad.py b/plugin.video.alfa/channels/allcalidad.py index 9d5f6a7e..8a64360a 100755 --- a/plugin.video.alfa/channels/allcalidad.py +++ b/plugin.video.alfa/channels/allcalidad.py @@ -92,9 +92,14 @@ def peliculas(item): matches = scrapertools.find_multiple_matches(data, patron) for url, thumbnail, titulo, varios in matches: idioma = scrapertools.find_single_match(varios, '(?s)Idioma.*?kinopoisk">([^<]+)') + number_idioma = scrapertools.find_single_match(idioma, '[0-9]') + mtitulo = titulo + if number_idioma != "": + idioma = "" + else: + mtitulo += " (" + idioma + ")" year = scrapertools.find_single_match(varios, 'Año.*?kinopoisk">([^<]+)') year = scrapertools.find_single_match(year, '[0-9]{4}') - mtitulo = titulo + " (" + idioma + ")" if year: mtitulo += " (" + year + ")" item.infoLabels['year'] = int(year)