Update allcalidad.py
This commit is contained in:
@@ -111,6 +111,8 @@ def findvideos(item):
|
|||||||
match = scrapertools.find_multiple_matches(bloque, '(?is)(?:iframe|script) .*?src="([^"]+)')
|
match = scrapertools.find_multiple_matches(bloque, '(?is)(?:iframe|script) .*?src="([^"]+)')
|
||||||
for url in match:
|
for url in match:
|
||||||
titulo = "Ver en: %s"
|
titulo = "Ver en: %s"
|
||||||
|
if "goo.gl" in url:
|
||||||
|
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")
|
||||||
if "youtube" in url:
|
if "youtube" in url:
|
||||||
titulo = "[COLOR = yellow]Ver trailer: %s[/COLOR]"
|
titulo = "[COLOR = yellow]Ver trailer: %s[/COLOR]"
|
||||||
if "ad.js" in url or "script" in url:
|
if "ad.js" in url or "script" in url:
|
||||||
@@ -123,7 +125,6 @@ def findvideos(item):
|
|||||||
title = titulo,
|
title = titulo,
|
||||||
fulltitle = item.fulltitle,
|
fulltitle = item.fulltitle,
|
||||||
thumbnail = item.thumbnail,
|
thumbnail = item.thumbnail,
|
||||||
server = "",
|
|
||||||
url = url
|
url = url
|
||||||
))
|
))
|
||||||
itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
|
itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
|
||||||
|
|||||||
Reference in New Issue
Block a user