Merge pull request #337 from lopezvg/master
Newpct1: desactivación de clones y resolución problema 4K
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "descargas2020",
|
||||
"name": "Descargas2020",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"adult": false,
|
||||
"language": ["cast", "lat"],
|
||||
"thumbnail": "http://descargas2020.com/d20/library/content/template/images/_logod2020.png",
|
||||
|
||||
@@ -42,24 +42,29 @@ modo_ultima_temp = config.get_setting('seleccionar_ult_temporadda_activa', chann
|
||||
timeout = config.get_setting('clonenewpct1_timeout_downloadpage', channel_py) #Timeout downloadpage
|
||||
if timeout == 0: timeout = None
|
||||
|
||||
platformtools.dialog_ok("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en el canal virtual NewPct1. Los clones desaparecerán en breve.", "Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/")
|
||||
platformtools.dialog_notification("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en NewPct1 como canal virtual. Los clones desaparecerán en breve. Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/", time=30000)
|
||||
|
||||
#Vayamos a la siguiente acción en el canal Newpct1
|
||||
from platformcode import launcher
|
||||
channel_clone_name = "descargas2020" #Nombre del Canal elegido
|
||||
channel_py = channel_clone_name
|
||||
host = "http://descargas2020.com/"
|
||||
item.category = channel_clone_name.capitalize()
|
||||
item.action = "mainlist"
|
||||
item.channel_host = host
|
||||
launcher.run(item)
|
||||
#launcher.run(item)
|
||||
|
||||
|
||||
def mainlist(item):
|
||||
logger.info()
|
||||
if item.channel != channel_py:
|
||||
return
|
||||
#if item.channel != channel_py:
|
||||
# return
|
||||
|
||||
itemlist = []
|
||||
|
||||
if not item.channel_host:
|
||||
item.channel_host = host
|
||||
item.category = channel_clone_name.capitalize()
|
||||
|
||||
thumb_pelis = get_thumb("channels_movie.png")
|
||||
thumb_pelis_hd = get_thumb("channels_movie_hd.png")
|
||||
@@ -71,20 +76,20 @@ def mainlist(item):
|
||||
thumb_settings = get_thumb("setting_0.png")
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Películas", url=host,
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category))
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Series", url=host, extra="series",
|
||||
thumbnail=thumb_series, category=item.category))
|
||||
thumbnail=thumb_series, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Documentales", url=host, extra="varios",
|
||||
thumbnail=thumb_docus, category=item.category))
|
||||
thumbnail=thumb_docus, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category))
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
return itemlist
|
||||
|
||||
@@ -499,9 +504,9 @@ def listado_busqueda(item):
|
||||
cnt_tot = 40 # Poner el num. máximo de items por página. Dejamos que la web lo controle
|
||||
cnt_title = 0 # Contador de líneas insertadas en Itemlist
|
||||
cnt_pag = 0 # Contador de líneas leídas de Matches
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
if timeout > 5:
|
||||
timeout_search = timeout # Timeout un poco más largo para las búsquedas
|
||||
timeout_search = timeout * 2 # Timeout un poco más largo para las búsquedas
|
||||
if timeout_search < 5:
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
data = ''
|
||||
|
||||
if item.cnt_pag:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "mispelisyseries",
|
||||
"name": "Mispelisyseries",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"adult": false,
|
||||
"language": ["cast", "lat"],
|
||||
"thumbnail": "http://mispelisyseries.com/mps/library/content/template_mps/images/logomps.png",
|
||||
|
||||
@@ -42,24 +42,29 @@ modo_ultima_temp = config.get_setting('seleccionar_ult_temporadda_activa', chann
|
||||
timeout = config.get_setting('clonenewpct1_timeout_downloadpage', channel_py) #Timeout downloadpage
|
||||
if timeout == 0: timeout = None
|
||||
|
||||
platformtools.dialog_ok("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en el canal virtual NewPct1. Los clones desaparecerán en breve.", "Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/")
|
||||
platformtools.dialog_notification("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en NewPct1 como canal virtual. Los clones desaparecerán en breve. Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/", time=30000)
|
||||
|
||||
#Vayamos a la siguiente acción en el canal Newpct1
|
||||
from platformcode import launcher
|
||||
channel_clone_name = "mispelisyseries" #Nombre del Canal elegido
|
||||
channel_py = channel_clone_name
|
||||
host = "http://mispelisyseries.com/"
|
||||
item.category = channel_clone_name.capitalize()
|
||||
item.action = "mainlist"
|
||||
item.channel_host = host
|
||||
launcher.run(item)
|
||||
#launcher.run(item)
|
||||
|
||||
|
||||
def mainlist(item):
|
||||
logger.info()
|
||||
if item.channel != channel_py:
|
||||
return
|
||||
#if item.channel != channel_py:
|
||||
# return
|
||||
|
||||
itemlist = []
|
||||
|
||||
if not item.channel_host:
|
||||
item.channel_host = host
|
||||
item.category = channel_clone_name.capitalize()
|
||||
|
||||
thumb_pelis = get_thumb("channels_movie.png")
|
||||
thumb_pelis_hd = get_thumb("channels_movie_hd.png")
|
||||
@@ -71,20 +76,20 @@ def mainlist(item):
|
||||
thumb_settings = get_thumb("setting_0.png")
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Películas", url=host,
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category))
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Series", url=host, extra="series",
|
||||
thumbnail=thumb_series, category=item.category))
|
||||
thumbnail=thumb_series, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Documentales", url=host, extra="varios",
|
||||
thumbnail=thumb_docus, category=item.category))
|
||||
thumbnail=thumb_docus, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category))
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
return itemlist
|
||||
|
||||
@@ -499,9 +504,9 @@ def listado_busqueda(item):
|
||||
cnt_tot = 40 # Poner el num. máximo de items por página. Dejamos que la web lo controle
|
||||
cnt_title = 0 # Contador de líneas insertadas en Itemlist
|
||||
cnt_pag = 0 # Contador de líneas leídas de Matches
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
if timeout > 5:
|
||||
timeout_search = timeout # Timeout un poco más largo para las búsquedas
|
||||
timeout_search = timeout * 2 # Timeout un poco más largo para las búsquedas
|
||||
if timeout_search < 5:
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
data = ''
|
||||
|
||||
if item.cnt_pag:
|
||||
|
||||
@@ -60,22 +60,24 @@ def mainlist(item):
|
||||
thumb_buscar = get_thumb("search.png")
|
||||
thumb_settings = get_thumb("setting_0.png")
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Películas", url=item.channel_host,
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category))
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Películas", url=item.channel_host,
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Series", url=item.channel_host, extra="series",
|
||||
thumbnail=thumb_series, category=item.category))
|
||||
thumbnail=thumb_series, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Documentales", url=item.channel_host, extra="varios",
|
||||
thumbnail=thumb_docus, category=item.category))
|
||||
thumbnail=thumb_docus, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=item.channel_host + "buscar", thumbnail=thumb_buscar, category=item.category))
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=item.channel_host + "buscar", thumbnail=thumb_buscar, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category))
|
||||
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
item.category = '%s / %s' % (channel_py.title(), item.category.title()) #Newpct1 / nombre de clone en pantalla de Mainlist
|
||||
|
||||
return itemlist
|
||||
|
||||
|
||||
@@ -489,9 +491,9 @@ def listado_busqueda(item):
|
||||
cnt_tot = 40 # Poner el num. máximo de items por página. Dejamos que la web lo controle
|
||||
cnt_title = 0 # Contador de líneas insertadas en Itemlist
|
||||
cnt_pag = 0 # Contador de líneas leídas de Matches
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
if timeout > 5:
|
||||
timeout_search = timeout # Timeout un poco más largo para las búsquedas
|
||||
timeout_search = timeout * 2 # Timeout un poco más largo para las búsquedas
|
||||
if timeout_search < 5:
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
data = ''
|
||||
|
||||
if item.cnt_pag:
|
||||
@@ -884,7 +886,7 @@ def listado_busqueda(item):
|
||||
|
||||
if not item.category: #Si este campo no existe es que viene de la primera pasada de una búsqueda global
|
||||
return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo
|
||||
|
||||
|
||||
#Pasamos a TMDB la lista completa Itemlist
|
||||
tmdb.set_infoLabels(itemlist, __modo_grafico__)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "torrentlocura",
|
||||
"name": "Torrentlocura",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"adult": false,
|
||||
"language": ["cast", "lat"],
|
||||
"banner": "torrentlocura.png",
|
||||
@@ -21,7 +21,7 @@
|
||||
"id": "include_in_global_search",
|
||||
"type": "bool",
|
||||
"label": "Incluir en busqueda global",
|
||||
"default": true,
|
||||
"default": false,
|
||||
"enabled": true,
|
||||
"visible": true
|
||||
},
|
||||
|
||||
@@ -42,24 +42,29 @@ modo_ultima_temp = config.get_setting('seleccionar_ult_temporadda_activa', chann
|
||||
timeout = config.get_setting('clonenewpct1_timeout_downloadpage', channel_py) #Timeout downloadpage
|
||||
if timeout == 0: timeout = None
|
||||
|
||||
platformtools.dialog_ok("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en el canal virtual NewPct1. Los clones desaparecerán en breve.", "Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/")
|
||||
platformtools.dialog_notification("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en NewPct1 como canal virtual. Los clones desaparecerán en breve. Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/", time=30000)
|
||||
|
||||
#Vayamos a la siguiente acción en el canal Newpct1
|
||||
from platformcode import launcher
|
||||
channel_clone_name = "torrentlocura" #Nombre del Canal elegido
|
||||
channel_py = channel_clone_name
|
||||
host = "http://torrentlocura.com/"
|
||||
item.category = channel_clone_name.capitalize()
|
||||
item.action = "mainlist"
|
||||
item.channel_host = host
|
||||
launcher.run(item)
|
||||
#launcher.run(item)
|
||||
|
||||
|
||||
def mainlist(item):
|
||||
logger.info()
|
||||
if item.channel != channel_py:
|
||||
return
|
||||
#if item.channel != channel_py:
|
||||
# return
|
||||
|
||||
itemlist = []
|
||||
|
||||
if not item.channel_host:
|
||||
item.channel_host = host
|
||||
item.category = channel_clone_name.capitalize()
|
||||
|
||||
thumb_pelis = get_thumb("channels_movie.png")
|
||||
thumb_pelis_hd = get_thumb("channels_movie_hd.png")
|
||||
@@ -71,20 +76,20 @@ def mainlist(item):
|
||||
thumb_settings = get_thumb("setting_0.png")
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Películas", url=host,
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category))
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Series", url=host, extra="series",
|
||||
thumbnail=thumb_series, category=item.category))
|
||||
thumbnail=thumb_series, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Documentales", url=host, extra="varios",
|
||||
thumbnail=thumb_docus, category=item.category))
|
||||
thumbnail=thumb_docus, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category))
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
return itemlist
|
||||
|
||||
@@ -499,9 +504,9 @@ def listado_busqueda(item):
|
||||
cnt_tot = 40 # Poner el num. máximo de items por página. Dejamos que la web lo controle
|
||||
cnt_title = 0 # Contador de líneas insertadas en Itemlist
|
||||
cnt_pag = 0 # Contador de líneas leídas de Matches
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
if timeout > 5:
|
||||
timeout_search = timeout # Timeout un poco más largo para las búsquedas
|
||||
timeout_search = timeout * 2 # Timeout un poco más largo para las búsquedas
|
||||
if timeout_search < 5:
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
data = ''
|
||||
|
||||
if item.cnt_pag:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "torrentrapid",
|
||||
"name": "Torrentrapid",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"adult": false,
|
||||
"language": ["*"],
|
||||
"thumbnail": "torrentrapid.png",
|
||||
@@ -21,7 +21,7 @@
|
||||
"id": "include_in_global_search",
|
||||
"type": "bool",
|
||||
"label": "Incluir en busqueda global",
|
||||
"default": true,
|
||||
"default": false,
|
||||
"enabled": true,
|
||||
"visible": true
|
||||
},
|
||||
|
||||
@@ -42,24 +42,29 @@ modo_ultima_temp = config.get_setting('seleccionar_ult_temporadda_activa', chann
|
||||
timeout = config.get_setting('clonenewpct1_timeout_downloadpage', channel_py) #Timeout downloadpage
|
||||
if timeout == 0: timeout = None
|
||||
|
||||
platformtools.dialog_ok("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en el canal virtual NewPct1. Los clones desaparecerán en breve.", "Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/")
|
||||
platformtools.dialog_notification("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en NewPct1 como canal virtual. Los clones desaparecerán en breve. Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/", time=30000)
|
||||
|
||||
#Vayamos a la siguiente acción en el canal Newpct1
|
||||
from platformcode import launcher
|
||||
channel_clone_name = "torrentrapid" #Nombre del Canal elegido
|
||||
channel_py = channel_clone_name
|
||||
host = "http://torrentrapid.com/"
|
||||
item.category = channel_clone_name.capitalize()
|
||||
item.action = "mainlist"
|
||||
item.channel_host = host
|
||||
launcher.run(item)
|
||||
#launcher.run(item)
|
||||
|
||||
|
||||
def mainlist(item):
|
||||
logger.info()
|
||||
if item.channel != channel_py:
|
||||
return
|
||||
#if item.channel != channel_py:
|
||||
# return
|
||||
|
||||
itemlist = []
|
||||
|
||||
if not item.channel_host:
|
||||
item.channel_host = host
|
||||
item.category = channel_clone_name.capitalize()
|
||||
|
||||
thumb_pelis = get_thumb("channels_movie.png")
|
||||
thumb_pelis_hd = get_thumb("channels_movie_hd.png")
|
||||
@@ -71,20 +76,20 @@ def mainlist(item):
|
||||
thumb_settings = get_thumb("setting_0.png")
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Películas", url=host,
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category))
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Series", url=host, extra="series",
|
||||
thumbnail=thumb_series, category=item.category))
|
||||
thumbnail=thumb_series, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Documentales", url=host, extra="varios",
|
||||
thumbnail=thumb_docus, category=item.category))
|
||||
thumbnail=thumb_docus, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category))
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
return itemlist
|
||||
|
||||
@@ -499,9 +504,9 @@ def listado_busqueda(item):
|
||||
cnt_tot = 40 # Poner el num. máximo de items por página. Dejamos que la web lo controle
|
||||
cnt_title = 0 # Contador de líneas insertadas en Itemlist
|
||||
cnt_pag = 0 # Contador de líneas leídas de Matches
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
if timeout > 5:
|
||||
timeout_search = timeout # Timeout un poco más largo para las búsquedas
|
||||
timeout_search = timeout * 2 # Timeout un poco más largo para las búsquedas
|
||||
if timeout_search < 5:
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
data = ''
|
||||
|
||||
if item.cnt_pag:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "tumejortorrent",
|
||||
"name": "Tumejortorrent",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"adult": false,
|
||||
"language": ["cast", "lat"],
|
||||
"thumbnail": "tumejortorrent.png",
|
||||
@@ -20,7 +20,7 @@
|
||||
"id": "include_in_global_search",
|
||||
"type": "bool",
|
||||
"label": "Incluir en busqueda global",
|
||||
"default": true,
|
||||
"default": false,
|
||||
"enabled": true,
|
||||
"visible": true
|
||||
},
|
||||
|
||||
@@ -42,24 +42,29 @@ modo_ultima_temp = config.get_setting('seleccionar_ult_temporadda_activa', chann
|
||||
timeout = config.get_setting('clonenewpct1_timeout_downloadpage', channel_py) #Timeout downloadpage
|
||||
if timeout == 0: timeout = None
|
||||
|
||||
platformtools.dialog_ok("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en el canal virtual NewPct1. Los clones desaparecerán en breve.", "Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/")
|
||||
platformtools.dialog_notification("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en NewPct1 como canal virtual. Los clones desaparecerán en breve. Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/", time=30000)
|
||||
|
||||
#Vayamos a la siguiente acción en el canal Newpct1
|
||||
from platformcode import launcher
|
||||
channel_clone_name = "tumejortorrent" #Nombre del Canal elegido
|
||||
channel_py = channel_clone_name
|
||||
host = "http://tumejortorrent.com/"
|
||||
item.category = channel_clone_name.capitalize()
|
||||
item.action = "mainlist"
|
||||
item.channel_host = host
|
||||
launcher.run(item)
|
||||
#launcher.run(item)
|
||||
|
||||
|
||||
def mainlist(item):
|
||||
logger.info()
|
||||
if item.channel != channel_py:
|
||||
return
|
||||
#if item.channel != channel_py:
|
||||
# return
|
||||
|
||||
itemlist = []
|
||||
|
||||
if not item.channel_host:
|
||||
item.channel_host = host
|
||||
item.category = channel_clone_name.capitalize()
|
||||
|
||||
thumb_pelis = get_thumb("channels_movie.png")
|
||||
thumb_pelis_hd = get_thumb("channels_movie_hd.png")
|
||||
@@ -71,20 +76,20 @@ def mainlist(item):
|
||||
thumb_settings = get_thumb("setting_0.png")
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Películas", url=host,
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category))
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Series", url=host, extra="series",
|
||||
thumbnail=thumb_series, category=item.category))
|
||||
thumbnail=thumb_series, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Documentales", url=host, extra="varios",
|
||||
thumbnail=thumb_docus, category=item.category))
|
||||
thumbnail=thumb_docus, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category))
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
return itemlist
|
||||
|
||||
@@ -499,9 +504,9 @@ def listado_busqueda(item):
|
||||
cnt_tot = 40 # Poner el num. máximo de items por página. Dejamos que la web lo controle
|
||||
cnt_title = 0 # Contador de líneas insertadas en Itemlist
|
||||
cnt_pag = 0 # Contador de líneas leídas de Matches
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
if timeout > 5:
|
||||
timeout_search = timeout # Timeout un poco más largo para las búsquedas
|
||||
timeout_search = timeout * 2 # Timeout un poco más largo para las búsquedas
|
||||
if timeout_search < 5:
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
data = ''
|
||||
|
||||
if item.cnt_pag:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "tvsinpagar",
|
||||
"name": "Tvsinpagar",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"adult": false,
|
||||
"language": ["cast", "lat"],
|
||||
"thumbnail": "tvsinpagar.png",
|
||||
@@ -20,7 +20,7 @@
|
||||
"id": "include_in_global_search",
|
||||
"type": "bool",
|
||||
"label": "Incluir en busqueda global",
|
||||
"default": true,
|
||||
"default": false,
|
||||
"enabled": true,
|
||||
"visible": true
|
||||
},
|
||||
|
||||
@@ -42,24 +42,29 @@ modo_ultima_temp = config.get_setting('seleccionar_ult_temporadda_activa', chann
|
||||
timeout = config.get_setting('clonenewpct1_timeout_downloadpage', channel_py) #Timeout downloadpage
|
||||
if timeout == 0: timeout = None
|
||||
|
||||
platformtools.dialog_ok("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en el canal virtual NewPct1. Los clones desaparecerán en breve.", "Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/")
|
||||
platformtools.dialog_notification("NewPct1, ¡¡¡he vuelto como canal VIRTUAL!!!", "Hemos centralizado la gestión de los clones de NewPct1 en NewPct1 como canal virtual. Los clones desaparecerán en breve. Para más información lee el tutorial: https://alfa-addon.com /threads/newpct1-implantando-alta-disponibilidad.1200/", time=30000)
|
||||
|
||||
#Vayamos a la siguiente acción en el canal Newpct1
|
||||
from platformcode import launcher
|
||||
channel_clone_name = "tvsinpagar" #Nombre del Canal elegido
|
||||
channel_py = channel_clone_name
|
||||
host = "http://www.tvsinpagar.com/"
|
||||
item.category = channel_clone_name.capitalize()
|
||||
item.action = "mainlist"
|
||||
item.channel_host = host
|
||||
launcher.run(item)
|
||||
#launcher.run(item)
|
||||
|
||||
|
||||
def mainlist(item):
|
||||
logger.info()
|
||||
if item.channel != channel_py:
|
||||
return
|
||||
#if item.channel != channel_py:
|
||||
# return
|
||||
|
||||
itemlist = []
|
||||
|
||||
if not item.channel_host:
|
||||
item.channel_host = host
|
||||
item.category = channel_clone_name.capitalize()
|
||||
|
||||
thumb_pelis = get_thumb("channels_movie.png")
|
||||
thumb_pelis_hd = get_thumb("channels_movie_hd.png")
|
||||
@@ -71,20 +76,20 @@ def mainlist(item):
|
||||
thumb_settings = get_thumb("setting_0.png")
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Películas", url=host,
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category))
|
||||
extra="peliculas", thumbnail=thumb_pelis, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Series", url=host, extra="series",
|
||||
thumbnail=thumb_series, category=item.category))
|
||||
thumbnail=thumb_series, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, action="submenu", title="Documentales", url=host, extra="varios",
|
||||
thumbnail=thumb_docus, category=item.category))
|
||||
thumbnail=thumb_docus, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category))
|
||||
Item(channel=item.channel, action="search", title="Buscar", url=host + "buscar", thumbnail=thumb_buscar, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="", title="[COLOR yellow]Configuración de Servidores:[/COLOR]", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category))
|
||||
Item(channel=item.channel, action="settingCanal", title="Servidores para Ver Online y Descargas", url="", thumbnail=thumb_settings, category=item.category, channel_host=item.channel_host))
|
||||
|
||||
return itemlist
|
||||
|
||||
@@ -499,9 +504,9 @@ def listado_busqueda(item):
|
||||
cnt_tot = 40 # Poner el num. máximo de items por página. Dejamos que la web lo controle
|
||||
cnt_title = 0 # Contador de líneas insertadas en Itemlist
|
||||
cnt_pag = 0 # Contador de líneas leídas de Matches
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
if timeout > 5:
|
||||
timeout_search = timeout # Timeout un poco más largo para las búsquedas
|
||||
timeout_search = timeout * 2 # Timeout un poco más largo para las búsquedas
|
||||
if timeout_search < 5:
|
||||
timeout_search = 5 # Timeout un poco más largo para las búsquedas
|
||||
data = ''
|
||||
|
||||
if item.cnt_pag:
|
||||
|
||||
@@ -802,8 +802,7 @@ def fail_over_newpct1(item, patron, patron2=None, timeout=None):
|
||||
if item.url_alt:
|
||||
item.url = item.url_alt
|
||||
del item.url_alt
|
||||
if item.channel_host:
|
||||
del item.channel_host
|
||||
item.channel_host = channel_host_failed
|
||||
|
||||
return (item, data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user