diff --git a/plugin.video.alfa/channels/allcalidad.py b/plugin.video.alfa/channels/allcalidad.py index 7a84ae36..0b629353 100755 --- a/plugin.video.alfa/channels/allcalidad.py +++ b/plugin.video.alfa/channels/allcalidad.py @@ -98,20 +98,15 @@ def peliculas(item): data = httptools.downloadpage(item.url).data patron = '(?s)short_overlay.*?([^<]+)') - 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}') + for url, thumbnail, titulo, datapostid in matches: + post = 'action=get_movie_details&postID=%s' %datapostid + data1 = httptools.downloadpage(host + "wp-admin/admin-ajax.php", post=post).data + idioma = "Latino" + mtitulo = titulo + " (" + idioma + ")" + year = scrapertools.find_single_match(data1, "Año:.*?(\d{4})") if year: mtitulo += " (" + year + ")" item.infoLabels['year'] = int(year) @@ -121,7 +116,6 @@ def peliculas(item): fulltitle = titulo, thumbnail = thumbnail, url = url, - contentTitle = titulo, contentType="movie", language = idioma )) @@ -142,10 +136,13 @@ def findvideos(item): contentTitle = scrapertools.find_single_match(data, 'orig_title.*?>([^<]+)<').strip() if contentTitle != "": item.contentTitle = contentTitle - patron = '(?s)fmi(.*?)thead' - bloque = scrapertools.find_single_match(data, patron) - match = scrapertools.find_multiple_matches(bloque, '(?is)(?:iframe|script) .*?src="([^"]+)') - for url in match: + bloque = scrapertools.find_single_match(data, '(?s)
(.*?)