@@ -136,6 +136,12 @@ def peliculas(item):
|
|||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
itemlist = []
|
itemlist = []
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url).data
|
||||||
|
if not item.infoLabels["year"]:
|
||||||
|
item.infoLabels["year"] = scrapertools.find_single_match(data, 'dateCreated.*?(\d{4})')
|
||||||
|
if "orig_title" in data:
|
||||||
|
contentTitle = scrapertools.find_single_match(data, 'orig_title.*?>([^<]+)<').strip()
|
||||||
|
if contentTitle != "":
|
||||||
|
item.contentTitle = contentTitle
|
||||||
patron = '(?s)fmi(.*?)thead'
|
patron = '(?s)fmi(.*?)thead'
|
||||||
bloque = scrapertools.find_single_match(data, patron)
|
bloque = scrapertools.find_single_match(data, patron)
|
||||||
match = scrapertools.find_multiple_matches(bloque, '(?is)(?:iframe|script) .*?src="([^"]+)')
|
match = scrapertools.find_multiple_matches(bloque, '(?is)(?:iframe|script) .*?src="([^"]+)')
|
||||||
@@ -173,7 +179,7 @@ def findvideos(item):
|
|||||||
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, thumbnail = item.thumbnail,
|
action="add_pelicula_to_library", url=item.url, thumbnail = item.thumbnail,
|
||||||
fulltitle = item.fulltitle
|
contentTitle = item.contentTitle
|
||||||
))
|
))
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
@@ -674,13 +674,6 @@ def findvideos(item):
|
|||||||
type = item.type.replace("streaming", "Online").replace("download", "de Descarga")
|
type = item.type.replace("streaming", "Online").replace("download", "de Descarga")
|
||||||
itemlist.extend(get_enlaces(item, url, type))
|
itemlist.extend(get_enlaces(item, url, type))
|
||||||
|
|
||||||
# Requerido para FilterTools
|
|
||||||
|
|
||||||
itemlist = filtertools.get_links(itemlist, item, list_language)
|
|
||||||
|
|
||||||
# Requerido para AutoPlay
|
|
||||||
|
|
||||||
autoplay.start(itemlist, item)
|
|
||||||
|
|
||||||
if __comprueba_enlaces__:
|
if __comprueba_enlaces__:
|
||||||
for it in itemlist:
|
for it in itemlist:
|
||||||
@@ -688,6 +681,15 @@ def findvideos(item):
|
|||||||
it.url = normalizar_url(it.url, it.server)
|
it.url = normalizar_url(it.url, it.server)
|
||||||
itemlist = servertools.check_list_links(itemlist, __comprueba_enlaces_num__)
|
itemlist = servertools.check_list_links(itemlist, __comprueba_enlaces_num__)
|
||||||
|
|
||||||
|
# Requerido para FilterTools
|
||||||
|
|
||||||
|
itemlist = filtertools.get_links(itemlist, item, list_language)
|
||||||
|
|
||||||
|
# Requerido para AutoPlay
|
||||||
|
|
||||||
|
autoplay.start(itemlist, item)
|
||||||
|
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
def normalizar_url(url, server):
|
def normalizar_url(url, server):
|
||||||
|
|||||||
Reference in New Issue
Block a user