From c043bd6a114e2b411ba49376f7dc804a3e4b9455 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Mon, 25 Mar 2019 19:10:00 +0100 Subject: [PATCH] hdpass ad https if not present --- plugin.video.alfa/channels/support.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin.video.alfa/channels/support.py b/plugin.video.alfa/channels/support.py index c141db50..b7b13809 100644 --- a/plugin.video.alfa/channels/support.py +++ b/plugin.video.alfa/channels/support.py @@ -14,6 +14,8 @@ def hdpass_get_servers(item): patron = r']+><\/iframe>' url = scrapertoolsV2.find_single_match(data, patron).replace("?alta", "") url = url.replace("&download=1", "") + if 'https' not in url: + url = 'https:' + url if 'hdpass' in url: data = httptools.downloadpage(url).data @@ -50,6 +52,7 @@ def hdpass_get_servers(item): contentType=item.contentType, server=server, url=url_decode(media_url))) + logger.info("video ->" + res_video) return itemlist