diff --git a/plugin.video.alfa/addon.xml b/plugin.video.alfa/addon.xml index 7c563af2..06d38c85 100755 --- a/plugin.video.alfa/addon.xml +++ b/plugin.video.alfa/addon.xml @@ -1,5 +1,5 @@  - + @@ -11,19 +11,11 @@ Sumario en Español [B]Estos son los cambios para esta versión:[/B][CR] [COLOR green][B]Canales agregados y arreglos[/B][/COLOR] - [I]- Cinecalidad - - Cinefox - - Mundoflv - - Metaserie - - Pelisplanet - - flashx - - xTheatre - - Playpornx[/I][CR] - [COLOR green][B]Servidores agregados y arreglos[/B][/COLOR][CR] - [I]- Flashx - - Streamcherry[/I] - - + [I]- Elitetorrent + - Seriespapaya + - Newpct1 -- [COLOR red]Momentáneamente búsqueda deshabilitada[/COLOR][/I][CR] + [COLOR green][B]Arreglos internos[/B][/COLOR] + [I]- videolibrary_service -- ahora no actualiza una serie de un canal, si está desactivado[/I] Descripción en Español English summary diff --git a/plugin.video.alfa/channels/newpct1.py b/plugin.video.alfa/channels/newpct1.py index c43f1233..9b57ad9b 100644 --- a/plugin.video.alfa/channels/newpct1.py +++ b/plugin.video.alfa/channels/newpct1.py @@ -158,7 +158,7 @@ def listado(item): title = title + ' ' + calidad context = "" - context_title = scrapertools.find_single_match(url, "http://www.newpct1.com/(.*?)/(.*?)/") + context_title = scrapertools.find_single_match(url, "http://(?:www.)?newpct1.com/(.*?)/(.*?)/") if context_title: try: context = context_title[0].replace("pelicula", "movie").replace("descargar", "movie").replace("series", @@ -168,6 +168,7 @@ def listado(item): context_title = context_title[:-4] elif re.search('\(\d{4}\)', context_title[-6:]): context_title = context_title[:-6] + except: context_title = show @@ -421,6 +422,8 @@ def findvideos(item): Item(channel=item.channel, action="play", server="torrent", title=title + " [torrent]", fulltitle=title, url=url, thumbnail=caratula, plot=item.plot, folder=False)) + + logger.debug("matar %s" % data) # escraped ver vídeos, descargar vídeos un link, múltiples liks data = data.replace("'", '"') data = data.replace( @@ -448,13 +451,11 @@ def findvideos(item): servidor = servidor.replace("streamin", "streaminto") titulo = titulo + " [" + servidor + "]" mostrar_server = True - if config.get_setting("hidepremium") == "true": + if config.get_setting("hidepremium"): mostrar_server = servertools.is_server_enabled(servidor) if mostrar_server: try: - servers_module = __import__("servers." + servidor) - server_module = getattr(servers_module, servidor) - devuelve = server_module.find_videos(enlace) + devuelve = servertools.findvideosbyserver(enlace, servidor) if devuelve: enlace = devuelve[0][1] itemlist.append( @@ -471,13 +472,11 @@ def findvideos(item): parte_titulo = titulo + " (%s/%s)" % (p, len(partes)) + " [" + servidor + "]" p += 1 mostrar_server = True - if config.get_setting("hidepremium") == "true": + if config.get_setting("hidepremium"): mostrar_server = servertools.is_server_enabled(servidor) if mostrar_server: try: - servers_module = __import__("servers." + servidor) - server_module = getattr(servers_module, servidor) - devuelve = server_module.find_videos(enlace) + devuelve = servertools.findvideosbyserver(enlace, servidor) if devuelve: enlace = devuelve[0][1] itemlist.append(Item(fanart=item.fanart, channel=item.channel, action="play", server=servidor,