diff --git a/plugin.video.alfa/addon.xml b/plugin.video.alfa/addon.xml index 12ee44df..2cb10757 100755 --- a/plugin.video.alfa/addon.xml +++ b/plugin.video.alfa/addon.xml @@ -1,5 +1,5 @@ - + @@ -20,10 +20,16 @@ [B]Estos son los cambios para esta versión:[/B] [COLOR green][B]Canales agregados y arreglos[/B][/COLOR] » torrentrapid » torrentlocura - » mispelisyseries » descargas2020 + » mispelisyseries » descargas2020 + » mejortorrent » tvsinpagar + » cinefox » newpct + » peliculasdk » netutv + » pepecine » seriespapaya + » doomtv » dostream + » pelisgratis » estream + » plusdede ¤ arreglos internos - - ¤ Gracias a la colaboración de @pipcat y @lopezvg en ésta versión + ¤ Gracias a @pipcat,@Rhinox117,@lopezvg por colaborar en ésta versión Navega con Kodi por páginas web para ver sus videos de manera fácil. Browse web pages using Kodi diff --git a/plugin.video.alfa/channels/animeflv_me.py b/plugin.video.alfa/channels/animeflv_me.py old mode 100755 new mode 100644 index 1fc97cbf..1644edd6 --- a/plugin.video.alfa/channels/animeflv_me.py +++ b/plugin.video.alfa/channels/animeflv_me.py @@ -213,7 +213,7 @@ def series(item): context.extend(context2) for show in show_list: title, url, thumbnail, plot = show - items.append(Item(channel=item.channel, action="episodios", title=title, url=url, thumbnail=thumbnail, + items.append(Item(channel=item.channel, action="episodios", title=title, url=url, thumbnail=thumbnail, contentSerieName=title, plot=plot, show=title, viewmode="movies_with_plot", context=context)) url_next_page = scrapertools.find_single_match(page_html, REGEX_NEXT_PAGE) @@ -237,21 +237,26 @@ def episodios(item): es_pelicula = False for url, title, date in episodes: episode = scrapertools.find_single_match(title, r'Episodio (\d+)') + new_item=itemlist.append(Item(channel=item.channel, action="findvideos", + url=url, thumbnail=item.thumbnail, plot=plot, show=item.show)) # El enlace pertenece a un episodio if episode: season = 1 episode = int(episode) season, episode = renumbertools.numbered_for_tratk( - item.channel, item.show, season, episode) - + item.channel, item.contentSerieName, season, episode) + new_item.infoLabels["episode"] = episode + new_item.infoLabels["season"] = season + new_item.contentSerieName = item.contentSerieName title = "%sx%s %s (%s)" % (season, str(episode).zfill(2), "Episodio %s" % episode, date) # El enlace pertenece a una pelicula else: title = "%s (%s)" % (title, date) item.url = url es_pelicula = True - itemlist.append(Item(channel=item.channel, action="findvideos", title=title, url=url, thumbnail=item.thumbnail, - plot=plot, show=item.show, fulltitle="%s %s" % (item.show, title))) + new_item.title=title + new_item.fulltitle="%s %s" % (item.show, title) + itemlist.append(new_item) # El sistema soporta la videoteca y se encontro por lo menos un episodio # o pelicula diff --git a/plugin.video.alfa/channels/cinefox.json b/plugin.video.alfa/channels/cinefox.json index 17b3228f..2edcc04a 100755 --- a/plugin.video.alfa/channels/cinefox.json +++ b/plugin.video.alfa/channels/cinefox.json @@ -67,6 +67,23 @@ "enabled": true, "visible": true }, + { + "id": "comprueba_enlaces", + "type": "bool", + "label": "Verificar si los enlaces existen", + "default": false, + "enabled": true, + "visible": true + }, + { + "id": "comprueba_enlaces_num", + "type": "list", + "label": "Número de enlaces a verificar", + "default": 1, + "enabled": true, + "visible": "eq(-1,true)", + "lvalues": [ "5", "10", "15", "20" ] + }, { "id": "perfil", "type": "list", diff --git a/plugin.video.alfa/channels/cinefox.py b/plugin.video.alfa/channels/cinefox.py index 115e5d89..264afbd2 100644 --- a/plugin.video.alfa/channels/cinefox.py +++ b/plugin.video.alfa/channels/cinefox.py @@ -25,6 +25,8 @@ list_servers = ['openload', 'powvideo', 'rapidvideo', 'streamango', 'streamcloud __modo_grafico__ = config.get_setting('modo_grafico', 'cinefox') __perfil__ = int(config.get_setting('perfil', "cinefox")) __menu_info__ = config.get_setting('menu_info', 'cinefox') +__comprueba_enlaces__ = config.get_setting('comprueba_enlaces', 'cinefox') +__comprueba_enlaces_num__ = config.get_setting('comprueba_enlaces_num', 'cinefox') # Fijar perfil de color perfil = [['0xFFFFE6CC', '0xFFFFCE9C', '0xFF994D00', '0xFFFE2E2E', '0xFF088A08'], @@ -685,8 +687,23 @@ def findvideos(item): autoplay.start(itemlist, item) + if __comprueba_enlaces__: + for it in itemlist: + if it.server != '' and it.url != '': + it.url = normalizar_url(it.url, it.server) + itemlist = servertools.check_list_links(itemlist, __comprueba_enlaces_num__) + return itemlist +def normalizar_url(url, server): + # Pasar por findvideosbyserver para para obtener url a partir de los pattern/url de los json de servidores + # Excepciones copiadas de la funcion play + url = url.replace("http://miracine.tv/n/?etu=", "http://hqq.tv/player/embed_player.php?vid=") + url = url.replace("streamcloud.eu/embed-", "streamcloud.eu/") + enlaces = servertools.findvideosbyserver(url, server)[0] + if enlaces[1] != '': + return enlaces[1] + return url def get_enlaces(item, url, type): itemlist = [] diff --git a/plugin.video.alfa/channels/danimados.py b/plugin.video.alfa/channels/danimados.py index 9f2f7ad0..0046da46 100644 --- a/plugin.video.alfa/channels/danimados.py +++ b/plugin.video.alfa/channels/danimados.py @@ -121,8 +121,8 @@ def episodios(item): data_lista = scrapertools.find_single_match(data, '