@@ -267,15 +267,11 @@ def findvideos(item):
|
|||||||
if itemlist:
|
if itemlist:
|
||||||
itemlist.append(item.clone(channel="trailertools", title="Buscar Tráiler", action="buscartrailer", context="",
|
itemlist.append(item.clone(channel="trailertools", title="Buscar Tráiler", action="buscartrailer", context="",
|
||||||
text_color="magenta"))
|
text_color="magenta"))
|
||||||
# Opción "Añadir esta película a la videoteca"
|
|
||||||
if item.extra != "library":
|
if item.extra != "library":
|
||||||
if config.get_videolibrary_support():
|
if config.get_videolibrary_support():
|
||||||
itemlist.append(Item(channel=item.channel, title="Añadir a la videoteca", text_color="green",
|
itemlist.append(Item(channel=item.channel, title="Añadir a la videoteca", text_color="green",
|
||||||
action="add_pelicula_to_library", url=item.url, fulltitle = item.fulltitle
|
action="add_pelicula_to_library", url=item.url, fulltitle = item.fulltitle
|
||||||
))
|
))
|
||||||
|
|
||||||
else:
|
|
||||||
itemlist.append(item.clone(title="No hay enlaces disponibles", action="", text_color=color3))
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
@@ -300,6 +296,8 @@ def bloque_enlaces(data, filtro_idioma, dict_idiomas, type, item):
|
|||||||
url = scrapertools.find_single_match(bloque1, patron)
|
url = scrapertools.find_single_match(bloque1, patron)
|
||||||
if "goo.gl" in url:
|
if "goo.gl" in url:
|
||||||
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")
|
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")
|
||||||
|
if "drive.php" in url:
|
||||||
|
scrapedserver = "gvideo"
|
||||||
if "player" in url:
|
if "player" in url:
|
||||||
scrapedserver = scrapertools.find_single_match(url, 'player/(\w+)')
|
scrapedserver = scrapertools.find_single_match(url, 'player/(\w+)')
|
||||||
if "ok" in scrapedserver: scrapedserver = "okru"
|
if "ok" in scrapedserver: scrapedserver = "okru"
|
||||||
@@ -352,10 +350,10 @@ def bloque_enlaces(data, filtro_idioma, dict_idiomas, type, item):
|
|||||||
def play(item):
|
def play(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
if "api.cinetux" in item.url or item.server == "okru":
|
if "api.cinetux" in item.url or item.server == "okru" or "drive.php" in item.url:
|
||||||
data = httptools.downloadpage(item.url, headers={'Referer': item.extra}).data.replace("\\", "")
|
data = httptools.downloadpage(item.url, headers={'Referer': item.extra}).data.replace("\\", "")
|
||||||
id = scrapertools.find_single_match(data, 'img src="[^#]+#(.*?)"')
|
id = scrapertools.find_single_match(data, 'img src="[^#]+#(.*?)"')
|
||||||
item.url = "https://youtube.googleapis.com/embed/?status=ok&hl=es&allow_embed=1&ps=docs&partnerid=30&hd=1&autoplay=0&cc_load_policy=1&showinfo=0&docid=" + id
|
item.url = "http://docs.google.com/get_video_info?docid=" + id
|
||||||
if item.server == "okru":
|
if item.server == "okru":
|
||||||
item.url = "https://ok.ru/videoembed/" + id
|
item.url = "https://ok.ru/videoembed/" + id
|
||||||
elif "links" in item.url or "www.cinetux.me" in item.url:
|
elif "links" in item.url or "www.cinetux.me" in item.url:
|
||||||
|
|||||||
@@ -145,7 +145,9 @@ def menuseries(item):
|
|||||||
def search(item, texto):
|
def search(item, texto):
|
||||||
logger.info()
|
logger.info()
|
||||||
texto = texto.replace(" ", "+")
|
texto = texto.replace(" ", "+")
|
||||||
item.url = item.url + texto
|
item.url = host + 'busqueda/?s=' + texto
|
||||||
|
if not item.extra:
|
||||||
|
item.extra = 'peliculas/'
|
||||||
try:
|
try:
|
||||||
if texto != '':
|
if texto != '':
|
||||||
return lista(item)
|
return lista(item)
|
||||||
@@ -217,7 +219,7 @@ def lista(item):
|
|||||||
else:
|
else:
|
||||||
item.extra = item.extra.rstrip('s/')
|
item.extra = item.extra.rstrip('s/')
|
||||||
if item.extra in url:
|
if item.extra in url:
|
||||||
itemlist.append(
|
new_item=(
|
||||||
Item(channel=item.channel,
|
Item(channel=item.channel,
|
||||||
contentType=tipo,
|
contentType=tipo,
|
||||||
action=accion,
|
action=accion,
|
||||||
@@ -237,7 +239,7 @@ def lista(item):
|
|||||||
|
|
||||||
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
||||||
|
|
||||||
# Encuentra los elementos que no tienen plot y carga las paginas correspondientes para obtenerlo#
|
#Encuentra los elementos que no tienen plot y carga las paginas correspondientes para obtenerlo#
|
||||||
for item in itemlist:
|
for item in itemlist:
|
||||||
if item.infoLabels['plot'] == '':
|
if item.infoLabels['plot'] == '':
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url).data
|
||||||
|
|||||||
@@ -7,6 +7,10 @@
|
|||||||
"pattern": "(?s)https://youtube.googleapis.com.*?docid=([0-9a-zA-Z-_]+)",
|
"pattern": "(?s)https://youtube.googleapis.com.*?docid=([0-9a-zA-Z-_]+)",
|
||||||
"url": "http://docs.google.com/get_video_info?docid=\\1"
|
"url": "http://docs.google.com/get_video_info?docid=\\1"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"pattern": "(?s)http://docs.google.com/get_video_info.*?docid=([0-9a-zA-Z-_]+)",
|
||||||
|
"url": "http://docs.google.com/get_video_info?docid=\\1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"pattern": "(?s)https://(?:docs|drive).google.com/file/d/([^/]+)/preview",
|
"pattern": "(?s)https://(?:docs|drive).google.com/file/d/([^/]+)/preview",
|
||||||
"url": "http://docs.google.com/get_video_info?docid=\\1"
|
"url": "http://docs.google.com/get_video_info?docid=\\1"
|
||||||
|
|||||||
Reference in New Issue
Block a user