hdpass ad https if not present
This commit is contained in:
@@ -14,6 +14,8 @@ def hdpass_get_servers(item):
|
|||||||
patron = r'<iframe(?: id="[^"]+")? width="[^"]+" height="[^"]+" src="([^"]+)"[^>]+><\/iframe>'
|
patron = r'<iframe(?: id="[^"]+")? width="[^"]+" height="[^"]+" src="([^"]+)"[^>]+><\/iframe>'
|
||||||
url = scrapertoolsV2.find_single_match(data, patron).replace("?alta", "")
|
url = scrapertoolsV2.find_single_match(data, patron).replace("?alta", "")
|
||||||
url = url.replace("&download=1", "")
|
url = url.replace("&download=1", "")
|
||||||
|
if 'https' not in url:
|
||||||
|
url = 'https:' + url
|
||||||
|
|
||||||
if 'hdpass' in url:
|
if 'hdpass' in url:
|
||||||
data = httptools.downloadpage(url).data
|
data = httptools.downloadpage(url).data
|
||||||
@@ -50,6 +52,7 @@ def hdpass_get_servers(item):
|
|||||||
contentType=item.contentType,
|
contentType=item.contentType,
|
||||||
server=server,
|
server=server,
|
||||||
url=url_decode(media_url)))
|
url=url_decode(media_url)))
|
||||||
|
logger.info("video ->" + res_video)
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user