diff --git a/plugin.video.alfa/channels/newpct1.json b/plugin.video.alfa/channels/newpct1.json index 5cf00d41..ae11a835 100644 --- a/plugin.video.alfa/channels/newpct1.json +++ b/plugin.video.alfa/channels/newpct1.json @@ -82,6 +82,7 @@ "Descargas2020", "Tumejortorrent", "Torrentrapid", + "Pctnew", "Torrentlocura", "Tvsinpagar", "Planetatorrent", @@ -92,7 +93,7 @@ "id": "clonenewpct1_channels_list", "type": "text", "label": "Lista de clones de NewPct1 y orden de uso", - "default": "('1', 'descargas2020', 'http://descargas2020.com/', 'movie, tvshow, season, episode', ''), ('1', 'tumejortorrent', 'http://tumejortorrent.com/', 'movie, tvshow, season, episode', ''), ('1', 'torrentrapid', 'http://torrentrapid.com/', 'movie, tvshow, season, episode', 'serie_episodios'), ('1', 'torrentlocura', 'http://torrentlocura.com/', 'movie, tvshow, season, episode', ''), ('1', 'tvsinpagar', 'http://www.tvsinpagar.com/', 'tvshow, season, episode', ''), ('1', 'planetatorrent', 'http://planetatorrent.com/', 'movie, tvshow, season, episode', ''), ('1', 'mispelisyseries', 'http://mispelisyseries.com/', 'movie', 'search, listado_busqueda')", + "default": "('1', 'descargas2020', 'http://descargas2020.com/', 'movie, tvshow, season, episode', ''), ('1', 'tumejortorrent', 'http://tumejortorrent.com/', 'movie, tvshow, season, episode', ''), ('1', 'torrentrapid', 'http://torrentrapid.com/', 'movie, tvshow, season, episode', 'serie_episodios'), ('1', 'pctnew', 'http://pctnew.com/', 'movie, tvshow, season, episode', ''), ('1', 'torrentlocura', 'http://torrentlocura.com/', 'movie, tvshow, season, episode', ''), ('1', 'tvsinpagar', 'http://www.tvsinpagar.com/', 'tvshow, season, episode', ''), ('1', 'planetatorrent', 'http://planetatorrent.com/', 'movie, tvshow, season, episode', ''), ('1', 'mispelisyseries', 'http://mispelisyseries.com/', 'movie', 'search, listado_busqueda')", "enabled": true, "visible": false }, diff --git a/plugin.video.alfa/channels/newpct1.py b/plugin.video.alfa/channels/newpct1.py index e456b356..a55f0871 100644 --- a/plugin.video.alfa/channels/newpct1.py +++ b/plugin.video.alfa/channels/newpct1.py @@ -44,19 +44,19 @@ clone_list_random = [] if host_index == 0: #Si el clones es "Aleatorio"... i = 0 - j = 2 #... marcamos el último de los clones "buenos" + j = 3 #... marcamos el último de los clones "buenos" for active_clone, channel_clone, host_clone, contentType_clone, info_clone in clone_list: if i <= j and active_clone == "1": - clone_list_random += [clone_list[i]] #... añadimos el clone activo "bueno" a la lista + clone_list_random += [clone_list[i]] #... añadimos el clone activo "bueno" a la lista else: break i += 1 if clone_list_random: #Si hay clones en la lista aleatoria... clone_list = [random.choice(clone_list_random)] #Seleccionamos un clone aleatorio #logger.debug(clone_list) - host_index = 1 #mutamos el num. de clone para que se procese en el siguiente loop + host_index = 1 #mutamos el num. de clone para que se procese en el siguiente loop -if host_index > 0 or not clone_list_random: #Si el Clone por defecto no es Aleatorio, o hay ya un aleatorio sleccionado... +if host_index > 0 or not clone_list_random: #Si el Clone por defecto no es Aleatorio, o hay ya un aleatorio sleccionado... i = 1 for active_clone, channel_clone, host_clone, contentType_clone, info_clone in clone_list: if i == host_index: @@ -202,20 +202,29 @@ def submenu(item): if "pelisyseries.com" in item.channel_host and item.extra == "varios": #compatibilidad con mispelisy.series.com data = '