From 3db02db15ae3d492c0850fdeed4b47c838399e6d Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Wed, 6 Jun 2018 15:08:17 -0500 Subject: [PATCH] netutv: fix --- plugin.video.alfa/servers/netutv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/servers/netutv.py b/plugin.video.alfa/servers/netutv.py index db65a7ee..cf31058c 100755 --- a/plugin.video.alfa/servers/netutv.py +++ b/plugin.video.alfa/servers/netutv.py @@ -31,8 +31,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= js_wise = scrapertools.find_single_match(data_page_url_hqq, "") data_unwise = jswise(js_wise).replace("\\", "") - at = scrapertools.find_single_match(data_unwise, 'var at\s*=\s*"([^"]+)"') - http_referer = scrapertools.find_single_match(data_unwise, 'var http_referer\s*=\s*"([^"]+)"') + at = scrapertools.find_single_match(data_unwise, 'at=(\w+)') + http_referer = scrapertools.find_single_match(data_unwise, 'http_referer=(.*?)&') url = "http://hqq.watch/sec/player/embed_player.php?iss=&vid=%s&at=%s&autoplayed=yes&referer=on" \ "&http_referer=%s&pass=&embed_from=&need_captcha=0&hash_from=" % (id_video, at, http_referer) data_player = httptools.downloadpage(url, add_referer=True).data