@@ -61,10 +61,12 @@ def listado(item):
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not data: #Si la web está caída salimos sin dar error
|
if not data and item.extra != "año": #Si la web está caída salimos sin dar error
|
||||||
logger.error("ERROR 01: LISTADO: La Web no responde o ha cambiado de URL: " + item.url + " / DATA: " + data)
|
logger.error("ERROR 01: LISTADO: La Web no responde o ha cambiado de URL: " + item.url + " / DATA: " + data)
|
||||||
itemlist.append(item.clone(action='', title=item.channel.capitalize() + ': ERROR 01: LISTADO:. La Web no responde o ha cambiado de URL. Si la Web está activa, reportar el error con el log'))
|
itemlist.append(item.clone(action='', title=item.channel.capitalize() + ': ERROR 01: LISTADO:. La Web no responde o ha cambiado de URL. Si la Web está activa, reportar el error con el log'))
|
||||||
return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos
|
return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos
|
||||||
|
elif not data and item.extra == "año": #cuando no hay datos para un año, da error. Tratamos de evitar el error
|
||||||
|
return itemlist
|
||||||
|
|
||||||
patron = '<div class="browse-movie-wrap col-xs-10 col-sm-4 col-md-5 col-lg-4"><a href="([^"]+)".*?src="([^"]+)".*?alt="([^"]+)".*?rel="tag">([^"]+)<\/a>\s?<\/div><div class="[^"]+">(.*?)<\/div><\/div><\/div>'
|
patron = '<div class="browse-movie-wrap col-xs-10 col-sm-4 col-md-5 col-lg-4"><a href="([^"]+)".*?src="([^"]+)".*?alt="([^"]+)".*?rel="tag">([^"]+)<\/a>\s?<\/div><div class="[^"]+">(.*?)<\/div><\/div><\/div>'
|
||||||
#data = scrapertools.find_single_match(data, patron)
|
#data = scrapertools.find_single_match(data, patron)
|
||||||
@@ -222,6 +224,9 @@ def findvideos(item):
|
|||||||
#Ahora tratamos el servidor directo
|
#Ahora tratamos el servidor directo
|
||||||
item_local = item.clone()
|
item_local = item.clone()
|
||||||
servidor = 'openload'
|
servidor = 'openload'
|
||||||
|
item_local.quality = ''
|
||||||
|
if item.infoLabels['duration']:
|
||||||
|
item_local.quality = scrapertools.find_single_match(item.quality, '(\s\[.*?\])') #Copiamos la duración
|
||||||
enlace = scrapertools.find_single_match(data, 'button-green-download-big".*?href="([^"]+)"><span class="icon-play">')
|
enlace = scrapertools.find_single_match(data, 'button-green-download-big".*?href="([^"]+)"><span class="icon-play">')
|
||||||
if enlace:
|
if enlace:
|
||||||
try:
|
try:
|
||||||
@@ -283,6 +288,7 @@ def newest(categoria):
|
|||||||
if categoria == 'torrent':
|
if categoria == 'torrent':
|
||||||
item.url = host
|
item.url = host
|
||||||
item.extra = "peliculas"
|
item.extra = "peliculas"
|
||||||
|
item.channel = "alltorrents"
|
||||||
|
|
||||||
itemlist = listado(item)
|
itemlist = listado(item)
|
||||||
if itemlist[-1].title == "Página siguiente >>":
|
if itemlist[-1].title == "Página siguiente >>":
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"active": true,
|
"active": true,
|
||||||
"adult": false,
|
"adult": false,
|
||||||
"language": ["*"],
|
"language": ["*"],
|
||||||
"thumbnail": "thumb_intervenido_pn.jpeg",
|
"thumbnail": "mejortorrent.png",
|
||||||
"banner": "mejortorrent.png",
|
"banner": "mejortorrent.png",
|
||||||
"categories": [
|
"categories": [
|
||||||
"torrent",
|
"torrent",
|
||||||
@@ -14,51 +14,51 @@
|
|||||||
],
|
],
|
||||||
"settings": [
|
"settings": [
|
||||||
{
|
{
|
||||||
|
"id": "domain_name",
|
||||||
|
"type": "text",
|
||||||
|
"label": "URL actual de la Web Mejor Torrent",
|
||||||
"default": "http://www.mejortorrent.com/",
|
"default": "http://www.mejortorrent.com/",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"id": "domain_name",
|
|
||||||
"label": "URL actual de la Web Mejor Torrent",
|
|
||||||
"type": "text",
|
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": true,
|
|
||||||
"enabled": true,
|
|
||||||
"id": "include_in_global_search",
|
"id": "include_in_global_search",
|
||||||
|
"type": "bool",
|
||||||
"label": "Incluir en busqueda global",
|
"label": "Incluir en busqueda global",
|
||||||
"type": "bool",
|
"default": false,
|
||||||
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": true,
|
|
||||||
"enabled": true,
|
|
||||||
"id": "modo_grafico",
|
"id": "modo_grafico",
|
||||||
|
"type": "bool",
|
||||||
"label": "Buscar información extra (TMDB)",
|
"label": "Buscar información extra (TMDB)",
|
||||||
"type": "bool",
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": true,
|
|
||||||
"enabled": true,
|
|
||||||
"id": "seleccionar_ult_temporadda_activa",
|
"id": "seleccionar_ult_temporadda_activa",
|
||||||
|
"type": "bool",
|
||||||
"label": "Seleccionar para Videoteca si estará activa solo la última Temporada",
|
"label": "Seleccionar para Videoteca si estará activa solo la última Temporada",
|
||||||
"type": "bool",
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": true,
|
|
||||||
"enabled": true,
|
|
||||||
"id": "include_in_newest_peliculas",
|
"id": "include_in_newest_peliculas",
|
||||||
"label": "Incluir en Novedades - Peliculas",
|
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Peliculas",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"id": "include_in_newest_documentales",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Documentales",
|
||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"id": "include_in_newest_documentales",
|
|
||||||
"label": "Incluir en Novedades - Documentales",
|
|
||||||
"type": "bool",
|
|
||||||
"visible": true
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1039,6 +1039,11 @@ def play_torrent(item, xlistitem, mediaurl):
|
|||||||
# Plugins externos
|
# Plugins externos
|
||||||
if seleccion > 1:
|
if seleccion > 1:
|
||||||
mediaurl = urllib.quote_plus(item.url)
|
mediaurl = urllib.quote_plus(item.url)
|
||||||
|
if "quasar" in torrent_options[seleccion][1] and item.infoLabels['tmdb_id']: #Llamada con más parámetros para completar el título
|
||||||
|
if item.contentType == 'episode':
|
||||||
|
mediaurl += "&episode=%s&library=&season=%s&show=%s&tmdb=%s&type=episode" % (item.infoLabels['episode'], item.infoLabels['season'], item.infoLabels['tmdb_id'], item.infoLabels['tmdb_id'])
|
||||||
|
else:
|
||||||
|
mediaurl += "&library=&tmdb=%s&type=movie" % (item.infoLabels['tmdb_id'])
|
||||||
xbmc.executebuiltin("PlayMedia(" + torrent_options[seleccion][1] % mediaurl + ")")
|
xbmc.executebuiltin("PlayMedia(" + torrent_options[seleccion][1] % mediaurl + ")")
|
||||||
|
|
||||||
if "quasar" in torrent_options[seleccion][1]: #Seleccionamos que clientes torrent soportamos
|
if "quasar" in torrent_options[seleccion][1]: #Seleccionamos que clientes torrent soportamos
|
||||||
|
|||||||
Reference in New Issue
Block a user