From e7c4c5bd9dff1655a5a4c3848ea7271a44ae28ac Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Fri, 15 Sep 2017 11:50:06 -0500 Subject: [PATCH] Update allcalidad.py --- plugin.video.alfa/channels/allcalidad.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/channels/allcalidad.py b/plugin.video.alfa/channels/allcalidad.py index 66c77836..c4ca9513 100755 --- a/plugin.video.alfa/channels/allcalidad.py +++ b/plugin.video.alfa/channels/allcalidad.py @@ -111,6 +111,8 @@ def findvideos(item): match = scrapertools.find_multiple_matches(bloque, '(?is)(?:iframe|script) .*?src="([^"]+)') for url in match: 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: titulo = "[COLOR = yellow]Ver trailer: %s[/COLOR]" if "ad.js" in url or "script" in url: @@ -123,7 +125,6 @@ def findvideos(item): title = titulo, fulltitle = item.fulltitle, thumbnail = item.thumbnail, - server = "", url = url )) itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())