cambios para news
This commit is contained in:
@@ -25,6 +25,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -54,6 +54,7 @@ def browser(url):
|
|||||||
api_key = "2e2160006592024ba87ccdf78c28f49f"
|
api_key = "2e2160006592024ba87ccdf78c28f49f"
|
||||||
api_fankey = "dffe90fba4d02c199ae7a9e71330c987"
|
api_fankey = "dffe90fba4d02c199ae7a9e71330c987"
|
||||||
|
|
||||||
|
host = 'http://alltorrent.net/'
|
||||||
|
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
@@ -392,3 +393,26 @@ def get_art(item):
|
|||||||
item.extra = item.extra + "|" + item.thumbnail
|
item.extra = item.extra + "|" + item.thumbnail
|
||||||
else:
|
else:
|
||||||
item.extra = item.extra + "|" + item.thumbnail
|
item.extra = item.extra + "|" + item.thumbnail
|
||||||
|
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = host
|
||||||
|
|
||||||
|
itemlist = scraper(item)
|
||||||
|
|
||||||
|
if itemlist[-1].action == "[COLOR olivedrab][B]Siguiente >>[/B][/COLOR]":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -55,6 +55,22 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -378,12 +378,14 @@ def newest(categoria):
|
|||||||
itemlist = []
|
itemlist = []
|
||||||
item = Item()
|
item = Item()
|
||||||
try:
|
try:
|
||||||
if categoria == 'peliculas':
|
if categoria in ['peliculas','latino']:
|
||||||
item.url = 'http://www.cinecalidad.to'
|
item.url = 'http://www.cinecalidad.com'
|
||||||
elif categoria == 'infantiles':
|
elif categoria == 'infantiles':
|
||||||
item.url = 'http://www.cinecalidad.to/genero-peliculas/infantil/'
|
item.url = 'http://www.cinecalidad.com/genero-peliculas/infantil/'
|
||||||
elif categoria == 'terror':
|
elif categoria == 'terror':
|
||||||
item.url = 'http://www.cinecalidad.to/genero-peliculas/terror/'
|
item.url = 'http://www.cinecalidad.com/genero-peliculas/terror/'
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = 'http://www.cinecalidad.com/espana/'
|
||||||
itemlist = peliculas(item)
|
itemlist = peliculas(item)
|
||||||
if itemlist[-1].title == 'Página siguiente >>':
|
if itemlist[-1].title == 'Página siguiente >>':
|
||||||
itemlist.pop()
|
itemlist.pop()
|
||||||
|
|||||||
@@ -44,6 +44,30 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_terror",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - terror",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "modo_grafico",
|
"id": "modo_grafico",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
|
|||||||
@@ -90,26 +90,30 @@ def newest(categoria):
|
|||||||
if categoria == 'peliculas':
|
if categoria == 'peliculas':
|
||||||
item.url = CHANNEL_HOST
|
item.url = CHANNEL_HOST
|
||||||
item.action = "peliculas"
|
item.action = "peliculas"
|
||||||
itemlist = peliculas(item)
|
|
||||||
|
|
||||||
if itemlist[-1].action == "peliculas":
|
|
||||||
itemlist.pop()
|
|
||||||
|
|
||||||
elif categoria == 'documentales':
|
elif categoria == 'documentales':
|
||||||
item.url = CHANNEL_HOST + "genero/documental/"
|
item.url = CHANNEL_HOST + "genero/documental/"
|
||||||
item.action = "peliculas"
|
item.action = "peliculas"
|
||||||
itemlist = peliculas(item)
|
|
||||||
|
|
||||||
if itemlist[-1].action == "peliculas":
|
|
||||||
itemlist.pop()
|
|
||||||
|
|
||||||
elif categoria == 'infantiles':
|
elif categoria == 'infantiles':
|
||||||
item.url = CHANNEL_HOST + "genero/infantil/"
|
item.url = CHANNEL_HOST + "genero/animacion/"
|
||||||
item.action = "peliculas"
|
item.action = "peliculas"
|
||||||
itemlist = peliculas(item)
|
|
||||||
|
|
||||||
if itemlist[-1].action == "peliculas":
|
elif categoria == 'terror':
|
||||||
itemlist.pop()
|
item.url = CHANNEL_HOST + "genero/terror/"
|
||||||
|
item.action = "peliculas"
|
||||||
|
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = CHANNEL_HOST + "idioma/espanol/"
|
||||||
|
item.action = "peliculas"
|
||||||
|
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = CHANNEL_HOST + "idioma/latino/"
|
||||||
|
item.action = "peliculas"
|
||||||
|
|
||||||
|
itemlist = peliculas(item)
|
||||||
|
if itemlist[-1].action == "peliculas":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
except:
|
except:
|
||||||
|
|||||||
@@ -21,6 +21,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1223,3 +1223,25 @@ def browser(url):
|
|||||||
response = r.read()
|
response = r.read()
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = 'http://cuelgame.net/?category=4'
|
||||||
|
|
||||||
|
itemlist = scraper(item)
|
||||||
|
|
||||||
|
if itemlist[-1].action == "Página siguiente >>":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -43,6 +43,14 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -535,3 +535,38 @@ def get_data(url_orig, get_host=False):
|
|||||||
break
|
break
|
||||||
|
|
||||||
return response.data
|
return response.data
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = host+'/peliculas'
|
||||||
|
|
||||||
|
itemlist = entradas(item)
|
||||||
|
if itemlist[-1].title == ">> Siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
item.url = host + '/series'
|
||||||
|
|
||||||
|
itemlist.extend(entradas(item))
|
||||||
|
if itemlist[-1].title == ">> Siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
item.url = host + '/anime'
|
||||||
|
|
||||||
|
itemlist.extend(entradas(item))
|
||||||
|
|
||||||
|
|
||||||
|
if itemlist[-1].title == ">> Siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -35,6 +35,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ def newest(categoria):
|
|||||||
itemlist = []
|
itemlist = []
|
||||||
item = Item()
|
item = Item()
|
||||||
try:
|
try:
|
||||||
if categoria == 'peliculas':
|
if categoria in ['peliculas', 'torrent']:
|
||||||
item.url = "http://www.divxatope1.com/peliculas"
|
item.url = "http://www.divxatope1.com/peliculas"
|
||||||
|
|
||||||
elif categoria == 'series':
|
elif categoria == 'series':
|
||||||
|
|||||||
@@ -26,6 +26,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1020,3 +1020,26 @@ def ext_size(url):
|
|||||||
ext_v = ext_v + " -- No reproducible"
|
ext_v = ext_v + " -- No reproducible"
|
||||||
size = ""
|
size = ""
|
||||||
return ext_v, size
|
return ext_v, size
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = 'http://www.divxtotal.com/peliculas/'
|
||||||
|
item.contentType="movie"
|
||||||
|
|
||||||
|
itemlist = scraper(item)
|
||||||
|
|
||||||
|
if itemlist[-1].title == "[COLOR springgreen][B]Siguiente >>[/B][/COLOR]":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -55,6 +55,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -202,7 +202,7 @@ def newest(categoria):
|
|||||||
item = Item()
|
item = Item()
|
||||||
# categoria='peliculas'
|
# categoria='peliculas'
|
||||||
try:
|
try:
|
||||||
if categoria == 'peliculas':
|
if categoria in ['peliculas', 'latino']:
|
||||||
item.url = host +'peliculas/page/1'
|
item.url = host +'peliculas/page/1'
|
||||||
elif categoria == 'infantiles':
|
elif categoria == 'infantiles':
|
||||||
item.url = host + 'categoria/animacion/'
|
item.url = host + 'categoria/animacion/'
|
||||||
|
|||||||
@@ -12,5 +12,15 @@
|
|||||||
"tvshow",
|
"tvshow",
|
||||||
"documentary",
|
"documentary",
|
||||||
"vos"
|
"vos"
|
||||||
|
],
|
||||||
|
"settings":[
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,3 +105,24 @@ def play(item):
|
|||||||
thumbnail=item.thumbnail, plot=item.plot, folder=False))
|
thumbnail=item.thumbnail, plot=item.plot, folder=False))
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = 'http://www.elitetorrent.wesconference.net/categoria/2/peliculas/modo:mini'
|
||||||
|
|
||||||
|
itemlist = peliculas(item)
|
||||||
|
if itemlist[-1].title == "Página siguiente >>":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -18,6 +18,22 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"visible": false
|
"visible": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,10 +12,11 @@ from core import tmdb
|
|||||||
from core.item import Item
|
from core.item import Item
|
||||||
from platformcode import logger
|
from platformcode import logger
|
||||||
|
|
||||||
|
host = 'http://gnula.mobi/'
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
itemlist = list()
|
itemlist = list()
|
||||||
itemlist.append(item.clone(title="Novedades", action="peliculas", url="http://gnula.mobi/"))
|
itemlist.append(item.clone(title="Novedades", action="peliculas", url=host))
|
||||||
itemlist.append(item.clone(title="Castellano", action="peliculas",
|
itemlist.append(item.clone(title="Castellano", action="peliculas",
|
||||||
url="http://www.gnula.mobi/tag/espanol/"))
|
url="http://www.gnula.mobi/tag/espanol/"))
|
||||||
itemlist.append(item.clone(title="Latino", action="peliculas", url="http://gnula.mobi/tag/latino/"))
|
itemlist.append(item.clone(title="Latino", action="peliculas", url="http://gnula.mobi/tag/latino/"))
|
||||||
@@ -113,3 +114,25 @@ def findvideos(item):
|
|||||||
def play(item):
|
def play(item):
|
||||||
item.thumbnail = item.contentThumbnail
|
item.thumbnail = item.contentThumbnail
|
||||||
return [item]
|
return [item]
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'peliculas':
|
||||||
|
item.url = host
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = host +'tag/espanol/'
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = host +'tag/latino/'
|
||||||
|
itemlist = peliculas(item)
|
||||||
|
if "Pagina" in itemlist[-1].title:
|
||||||
|
itemlist.pop()
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -48,6 +48,22 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -265,14 +265,25 @@ def newest(categoria):
|
|||||||
logger.info()
|
logger.info()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
item = Item()
|
item = Item()
|
||||||
|
item.page = 0
|
||||||
try:
|
try:
|
||||||
if categoria == "terror":
|
if categoria == "terror":
|
||||||
item.url = host +"/listado/terror/"
|
item.url = host +"/listado/terror/"
|
||||||
item.action = "updated"
|
item.action = "updated"
|
||||||
item.page = 0
|
itemlist = updated(item)
|
||||||
itemlist = updated(item)
|
elif categoria == 'castellano':
|
||||||
|
item.url = host + "/estrenos/es/"
|
||||||
|
item.action = "entradas"
|
||||||
|
|
||||||
if itemlist[-1].action == "updated":
|
elif categoria == 'latino':
|
||||||
|
item.url = host + "/estrenos/la/"
|
||||||
|
item.action = "entradas"
|
||||||
|
|
||||||
|
if categoria != 'terror':
|
||||||
|
itemlist = entradas(item)
|
||||||
|
|
||||||
|
|
||||||
|
if itemlist[-1].action == item.action:
|
||||||
itemlist.pop()
|
itemlist.pop()
|
||||||
|
|
||||||
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
|||||||
@@ -20,6 +20,14 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -423,3 +423,28 @@ def play(item):
|
|||||||
thumbnail=item.thumbnail, plot=item.plot, folder=False))
|
thumbnail=item.thumbnail, plot=item.plot, folder=False))
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = 'http://www.mejortorrent.com/torrents-de-peliculas.html'
|
||||||
|
|
||||||
|
itemlist = getlist(item)
|
||||||
|
if itemlist[-1].title == "Pagina siguiente >>":
|
||||||
|
itemlist.pop()
|
||||||
|
item.url = 'http://www.mejortorrent.com/torrents-de-series.html'
|
||||||
|
itemlist.extend(getlist(item))
|
||||||
|
if itemlist[-1].title == "Pagina siguiente >>":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -19,6 +19,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1555,3 +1555,28 @@ def busqueda(item):
|
|||||||
|
|
||||||
from channels import search
|
from channels import search
|
||||||
return search.do_search(new_item, cat)
|
return search.do_search(new_item, cat)
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = 'http://www.miltorrents.com'
|
||||||
|
|
||||||
|
itemlist = peliculas(item)
|
||||||
|
if itemlist[-1].title == "[COLOR khaki]siguiente[/COLOR]":
|
||||||
|
itemlist.pop()
|
||||||
|
item.url = 'http://www.miltorrents.com/series'
|
||||||
|
itemlist.extend(peliculas(item))
|
||||||
|
if itemlist[-1].title == "[COLOR khaki]siguiente[/COLOR]":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -20,6 +20,14 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -442,3 +442,29 @@ def search(item, texto):
|
|||||||
for line in sys.exc_info():
|
for line in sys.exc_info():
|
||||||
logger.error("%s" % line)
|
logger.error("%s" % line)
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
item.extra = 'pelilist'
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = host+'peliculas/'
|
||||||
|
|
||||||
|
itemlist = listado(item)
|
||||||
|
if itemlist[-1].title == ">> Página siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
item.url = host+'series/'
|
||||||
|
itemlist.extend(listado(item))
|
||||||
|
if itemlist[-1].title == ">> Página siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|||||||
@@ -74,6 +74,26 @@ def mainlist(item):
|
|||||||
set_category_context(new_item)
|
set_category_context(new_item)
|
||||||
itemlist.append(new_item)
|
itemlist.append(new_item)
|
||||||
|
|
||||||
|
# if list_canales['Castellano']:
|
||||||
|
thumbnail = get_thumb("channels_documentary.png")
|
||||||
|
new_item = Item(channel=item.channel, action="novedades", extra="castellano", title="Castellano",
|
||||||
|
thumbnail=thumbnail)
|
||||||
|
set_category_context(new_item)
|
||||||
|
itemlist.append(new_item)
|
||||||
|
|
||||||
|
# if list_canales['Latino']:
|
||||||
|
thumbnail = get_thumb("channels_documentary.png")
|
||||||
|
new_item = Item(channel=item.channel, action="novedades", extra="latino", title="Latino",
|
||||||
|
thumbnail=thumbnail)
|
||||||
|
set_category_context(new_item)
|
||||||
|
itemlist.append(new_item)
|
||||||
|
|
||||||
|
# if list_canales['Torrent']:
|
||||||
|
thumbnail = get_thumb("channels_documentary.png")
|
||||||
|
new_item = Item(channel=item.channel, action="novedades", extra="torrent", title="Torrent", thumbnail=thumbnail)
|
||||||
|
set_category_context(new_item)
|
||||||
|
itemlist.append(new_item)
|
||||||
|
|
||||||
#if list_canales['documentales']:
|
#if list_canales['documentales']:
|
||||||
thumbnail = get_thumb("channels_documentary.png")
|
thumbnail = get_thumb("channels_documentary.png")
|
||||||
new_item = Item(channel=item.channel, action="novedades", extra="documentales", title="Documentales",
|
new_item = Item(channel=item.channel, action="novedades", extra="documentales", title="Documentales",
|
||||||
@@ -95,7 +115,8 @@ def set_category_context(item):
|
|||||||
def get_channels_list():
|
def get_channels_list():
|
||||||
logger.info()
|
logger.info()
|
||||||
|
|
||||||
list_canales = {'peliculas': [], 'terror': [], 'infantiles': [], 'series': [], 'anime': [], 'documentales': []}
|
list_canales = {'peliculas': [], 'terror': [], 'infantiles': [], 'series': [], 'anime': [],
|
||||||
|
'castellano': [], 'latino':[], 'torrent':[], 'documentales': []}
|
||||||
any_active = False
|
any_active = False
|
||||||
# Rellenar listas de canales disponibles
|
# Rellenar listas de canales disponibles
|
||||||
channels_path = os.path.join(config.get_runtime_path(), "channels", '*.json')
|
channels_path = os.path.join(config.get_runtime_path(), "channels", '*.json')
|
||||||
@@ -419,6 +440,16 @@ def menu_opciones(item):
|
|||||||
title=" - Episodios de anime",
|
title=" - Episodios de anime",
|
||||||
thumbnail=get_thumb("channels_anime.png"),
|
thumbnail=get_thumb("channels_anime.png"),
|
||||||
folder=False))
|
folder=False))
|
||||||
|
itemlist.append(
|
||||||
|
Item(channel=item.channel, action="setting_channel", extra="castellano", title=" - Castellano",
|
||||||
|
thumbnail=get_thumb("channels_documentary.png"), folder=False))
|
||||||
|
|
||||||
|
itemlist.append(Item(channel=item.channel, action="setting_channel", extra="latino", title=" - Latino",
|
||||||
|
thumbnail=get_thumb("channels_documentary.png"), folder=False))
|
||||||
|
|
||||||
|
itemlist.append(Item(channel=item.channel, action="setting_channel", extra="Torrent", title=" - Torrent",
|
||||||
|
thumbnail=get_thumb("channels_documentary.png"), folder=False))
|
||||||
|
|
||||||
itemlist.append(Item(channel=item.channel, action="setting_channel", extra="documentales",
|
itemlist.append(Item(channel=item.channel, action="setting_channel", extra="documentales",
|
||||||
title=" - Documentales",
|
title=" - Documentales",
|
||||||
thumbnail=get_thumb("channels_documentary.png"),
|
thumbnail=get_thumb("channels_documentary.png"),
|
||||||
|
|||||||
@@ -18,6 +18,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -746,6 +746,28 @@ def info(item):
|
|||||||
infoplus.start(item_info, peliculas)
|
infoplus.start(item_info, peliculas)
|
||||||
|
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'castellano':
|
||||||
|
item.url = host + "idioma/Espanol/"
|
||||||
|
item.action = "peliculas"
|
||||||
|
|
||||||
|
itemlist = peliculas(item)
|
||||||
|
if itemlist[-1].action == "peliculas":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
def browser(url):
|
def browser(url):
|
||||||
import mechanize
|
import mechanize
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,22 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "modo_grafico",
|
"id": "modo_grafico",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
|
|||||||
@@ -80,6 +80,12 @@ def newest(categoria):
|
|||||||
item.url = host
|
item.url = host
|
||||||
elif categoria == "terror":
|
elif categoria == "terror":
|
||||||
item.url = host+"terror/"
|
item.url = host+"terror/"
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = host + "?s=Español"
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = host + "?s=Latino"
|
||||||
|
|
||||||
|
|
||||||
item.from_newest = True
|
item.from_newest = True
|
||||||
item.action = "entradas"
|
item.action = "entradas"
|
||||||
itemlist = entradas(item)
|
itemlist = entradas(item)
|
||||||
|
|||||||
@@ -9,5 +9,63 @@
|
|||||||
"categories": [
|
"categories": [
|
||||||
"direct",
|
"direct",
|
||||||
"movie"
|
"movie"
|
||||||
]
|
],
|
||||||
|
"settings":[
|
||||||
|
{
|
||||||
|
"id": "include_in_global_search",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en busqueda global",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_peliculas",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Películas",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_documentales",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Documentales",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_infantiles",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Infantiles",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_terror",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - terror",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,3 +148,41 @@ def findvideos(item):
|
|||||||
def play(item):
|
def play(item):
|
||||||
item.thumbnail = item.contentThumbnail
|
item.thumbnail = item.contentThumbnail
|
||||||
return [item]
|
return [item]
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'peliculas':
|
||||||
|
item.url = host
|
||||||
|
|
||||||
|
elif categoria == 'documentales':
|
||||||
|
item.url = host + "genero/documental/"
|
||||||
|
|
||||||
|
elif categoria == 'infantiles':
|
||||||
|
item.url = host + "genero/animacion-e-infantil/"
|
||||||
|
|
||||||
|
elif categoria == 'terror':
|
||||||
|
item.url = host + "genero/terror/"
|
||||||
|
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = host + "idioma/castellano/"
|
||||||
|
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = host + "idioma/latino/"
|
||||||
|
|
||||||
|
itemlist = peliculas(item)
|
||||||
|
|
||||||
|
if itemlist[-1].action == "peliculas":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
@@ -10,5 +10,63 @@
|
|||||||
"movie",
|
"movie",
|
||||||
"direct",
|
"direct",
|
||||||
"VOS"
|
"VOS"
|
||||||
]
|
],
|
||||||
|
"settings":[
|
||||||
|
{
|
||||||
|
"id": "include_in_global_search",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en busqueda global",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_peliculas",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Películas",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_documentales",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Documentales",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_infantiles",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Infantiles",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_terror",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - terror",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,3 +164,41 @@ def play(item):
|
|||||||
logger.info()
|
logger.info()
|
||||||
item.thumbnail = item.extra
|
item.thumbnail = item.extra
|
||||||
return [item]
|
return [item]
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'peliculas':
|
||||||
|
item.url = host
|
||||||
|
|
||||||
|
elif categoria == 'documentales':
|
||||||
|
item.url = host + "/genero/documental/"
|
||||||
|
|
||||||
|
elif categoria == 'infantiles':
|
||||||
|
item.url = host + "/genero/animacion/"
|
||||||
|
|
||||||
|
elif categoria == 'terror':
|
||||||
|
item.url = host + "/genero/terror/"
|
||||||
|
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = host + "/idioma/espanol-castellano/"
|
||||||
|
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = host + "/idioma/espanol-latino/"
|
||||||
|
|
||||||
|
itemlist = agregadas(item)
|
||||||
|
|
||||||
|
if itemlist[-1].action == "agregadas":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -334,3 +334,29 @@ def findvideos(item):
|
|||||||
servertools.get_servers_itemlist(itemlist)
|
servertools.get_servers_itemlist(itemlist)
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = api + "?sort_by=''&page=0"
|
||||||
|
|
||||||
|
itemlist = pelis(item)
|
||||||
|
if itemlist[-1].title == ">> Página siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
item.url = api_serie + "?sort_by=''&page=0"
|
||||||
|
itemlist.extend(series(item))
|
||||||
|
if itemlist[-1].title == ">> Página siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,22 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,9 +34,14 @@ def newest(categoria):
|
|||||||
if categoria == 'peliculas':
|
if categoria == 'peliculas':
|
||||||
item.url = host
|
item.url = host
|
||||||
elif categoria == 'infantiles':
|
elif categoria == 'infantiles':
|
||||||
item.url = host + 'genero/infantil/'
|
item.url = host + '/genero/infantil/'
|
||||||
elif categoria == 'terror':
|
elif categoria == 'terror':
|
||||||
item.url = host + 'genero/terror/'
|
item.url = host + '/genero/terror/'
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = host +'/lenguaje/castellano/'
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = host +'/lenguaje/latino/'
|
||||||
|
itemlist = peliculas(item)
|
||||||
itemlist = peliculas(item)
|
itemlist = peliculas(item)
|
||||||
if "Pagina" in itemlist[-1].title:
|
if "Pagina" in itemlist[-1].title:
|
||||||
itemlist.pop()
|
itemlist.pop()
|
||||||
@@ -126,6 +131,7 @@ def filtro(item):
|
|||||||
for url, title in matches:
|
for url, title in matches:
|
||||||
if "eroticas" in title and config.get_setting("adult_mode") == 0:
|
if "eroticas" in title and config.get_setting("adult_mode") == 0:
|
||||||
continue
|
continue
|
||||||
|
logger.debug('la url: %s' %url)
|
||||||
itemlist.append(item.clone(action = "peliculas",
|
itemlist.append(item.clone(action = "peliculas",
|
||||||
title = title.title(),
|
title = title.title(),
|
||||||
url = url
|
url = url
|
||||||
|
|||||||
@@ -61,6 +61,22 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,6 +143,11 @@ def newest(categoria):
|
|||||||
item.url = host + "genero/animacion-e-infantil/"
|
item.url = host + "genero/animacion-e-infantil/"
|
||||||
elif categoria == 'terror':
|
elif categoria == 'terror':
|
||||||
item.url = host + "genero/terror/"
|
item.url = host + "genero/terror/"
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = host + "idioma/castellano/"
|
||||||
|
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = host + "idioma/latino/"
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -270,10 +270,18 @@ def newest(category):
|
|||||||
logger.info()
|
logger.info()
|
||||||
item = Item()
|
item = Item()
|
||||||
try:
|
try:
|
||||||
if category == 'peliculas':
|
if category in ['peliculas', 'torrent']:
|
||||||
item.url = host + 'estrenos-de-cine'
|
item.url = host + 'estrenos-de-cine'
|
||||||
item.extra='movie'
|
item.extra='movie'
|
||||||
itemlist = lista(item)
|
itemlist = lista(item)
|
||||||
|
if itemlist[-1].title == 'Siguiente >>>':
|
||||||
|
itemlist.pop()
|
||||||
|
if category == 'torrent':
|
||||||
|
|
||||||
|
item.url = host+'series'
|
||||||
|
item.extra = 'serie'
|
||||||
|
itemlist.extend(lista(item))
|
||||||
|
|
||||||
if itemlist[-1].title == 'Siguiente >>>':
|
if itemlist[-1].title == 'Siguiente >>>':
|
||||||
itemlist.pop()
|
itemlist.pop()
|
||||||
except:
|
except:
|
||||||
|
|||||||
@@ -13,13 +13,21 @@
|
|||||||
"tvshow"
|
"tvshow"
|
||||||
],
|
],
|
||||||
"settings": [
|
"settings": [
|
||||||
{
|
{
|
||||||
"id": "include_in_global_search",
|
"id": "include_in_global_search",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"label": "Incluir en busqueda global",
|
"label": "Incluir en busqueda global",
|
||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -464,3 +464,30 @@ def play(item):
|
|||||||
itemlist = [item]
|
itemlist = [item]
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
logger.info()
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
item.pattern = 'pelilist'
|
||||||
|
if categoria == 'torrent':
|
||||||
|
item.url = host+'peliculas/'
|
||||||
|
|
||||||
|
itemlist = listado(item)
|
||||||
|
if itemlist[-1].title == ">> Página siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
item.url = host+'series/'
|
||||||
|
itemlist.extend(listado(item))
|
||||||
|
if itemlist[-1].title == ">> Página siguiente":
|
||||||
|
itemlist.pop()
|
||||||
|
|
||||||
|
# Se captura la excepción, para no interrumpir al canal novedades si un canal falla
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,15 @@
|
|||||||
{
|
{
|
||||||
"id": "include_in_newest_peliculas",
|
"id": "include_in_newest_peliculas",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"label": "Incluir en Novedades - Peliculas",
|
"label": "Incluir en Novedades - Películas",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_documentales",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Documentales",
|
||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
@@ -47,6 +55,30 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_terror",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - terror",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -378,6 +378,19 @@ def newest(categoria):
|
|||||||
item.url = host
|
item.url = host
|
||||||
elif categoria == 'infantiles':
|
elif categoria == 'infantiles':
|
||||||
item.url = host + '/genero/infantil/'
|
item.url = host + '/genero/infantil/'
|
||||||
|
|
||||||
|
elif categoria == 'documentales':
|
||||||
|
item.url = host + '/genero/documental/'
|
||||||
|
|
||||||
|
elif categoria == 'terror':
|
||||||
|
item.url = host + '/genero/terror/'
|
||||||
|
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = host + "/audio/castellano/"
|
||||||
|
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = host + "/audio/latino/"
|
||||||
|
|
||||||
itemlist = lista(item)
|
itemlist = lista(item)
|
||||||
if itemlist[-1].title == 'Siguiente >>>':
|
if itemlist[-1].title == 'Siguiente >>>':
|
||||||
itemlist.pop()
|
itemlist.pop()
|
||||||
|
|||||||
@@ -43,6 +43,22 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_castellano",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Castellano",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_latino",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Latino",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -208,6 +208,11 @@ def newest(categoria):
|
|||||||
item.url = host + '/ver/'
|
item.url = host + '/ver/'
|
||||||
elif categoria == 'terror':
|
elif categoria == 'terror':
|
||||||
item.url = host + "/categoria/de-terror.htm"
|
item.url = host + "/categoria/de-terror.htm"
|
||||||
|
elif categoria == 'castellano':
|
||||||
|
item.url = host + "/ver/espanol/"
|
||||||
|
|
||||||
|
elif categoria == 'latino':
|
||||||
|
item.url = host + "/ver/latino/"
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,14 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"visible": true
|
"visible": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "include_in_newest_torrent",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Incluir en Novedades - Torrent",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,6 +178,8 @@ def newest(categoria):
|
|||||||
item.url = HOST + "/animacion"
|
item.url = HOST + "/animacion"
|
||||||
elif categoria == 'terror':
|
elif categoria == 'terror':
|
||||||
item.url = HOST + "/terror/"
|
item.url = HOST + "/terror/"
|
||||||
|
elif categoria == 'torrent':
|
||||||
|
item.url = HOST + "/?s=torrent"
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user