Fix AW e AS
This commit is contained in:
@@ -12,11 +12,14 @@ headers={'X-Requested-With': 'XMLHttpRequest'}
|
|||||||
|
|
||||||
def get_data(item, head=[]):
|
def get_data(item, head=[]):
|
||||||
global headers
|
global headers
|
||||||
|
jstr = ''
|
||||||
for h in head:
|
for h in head:
|
||||||
headers[h[0]] = h[1]
|
headers[h[0]] = h[1]
|
||||||
if not item.count: item.count = 0
|
if not item.count: item.count = 0
|
||||||
jstr, location = support.match(item, patron=r'<script>(.*?location.href="([^"]+)";)</').match
|
matches = support.match(item, patron=r'<script>(.*?location.href=".*?(http[^"]+)";)</').match
|
||||||
item.url=location.replace('http://','https://')
|
if matches:
|
||||||
|
jstr, location = matches
|
||||||
|
item.url=support.re.sub(r':\d+', '', location).replace('http://','https://')
|
||||||
if not config.get_setting('key', item.channel) and jstr:
|
if not config.get_setting('key', item.channel) and jstr:
|
||||||
jshe = 'var document = {}, location = {}'
|
jshe = 'var document = {}, location = {}'
|
||||||
aesjs = str(support.match(host + '/aes.min.js').data)
|
aesjs = str(support.match(host + '/aes.min.js').data)
|
||||||
@@ -30,7 +33,7 @@ def get_data(item, head=[]):
|
|||||||
|
|
||||||
# set cookie
|
# set cookie
|
||||||
headers['cookie'] = config.get_setting('key', item.channel)
|
headers['cookie'] = config.get_setting('key', item.channel)
|
||||||
res = support.match(item, headers=headers, patron=r';\s*location.href="([^"]+)"')
|
res = support.match(item, headers=headers, patron=r';\s*location.href=".*?(http[^"]+)"')
|
||||||
if res.match:
|
if res.match:
|
||||||
item.url= res.match.replace('http://','https://')
|
item.url= res.match.replace('http://','https://')
|
||||||
data = support.match(item, headers=headers).data
|
data = support.match(item, headers=headers).data
|
||||||
|
|||||||
@@ -20,11 +20,14 @@ def order():
|
|||||||
|
|
||||||
def get_data(item, head=[]):
|
def get_data(item, head=[]):
|
||||||
global headers
|
global headers
|
||||||
|
jstr = ''
|
||||||
for h in head:
|
for h in head:
|
||||||
headers[h[0]] = h[1]
|
headers[h[0]] = h[1]
|
||||||
if not item.count: item.count = 0
|
if not item.count: item.count = 0
|
||||||
jstr, location = support.match(item, patron=r'<script>(.*?location.href=".*?(http[^"]+)";)</').match
|
matches = support.match(item, patron=r'<script>(.*?location.href=".*?(http[^"]+)";)</').match
|
||||||
item.url=support.re.sub(r':\d+', '', location).replace('http://','https://')
|
if matches:
|
||||||
|
jstr, location = matches
|
||||||
|
item.url=support.re.sub(r':\d+', '', location).replace('http://','https://')
|
||||||
if not config.get_setting('key', item.channel) and jstr:
|
if not config.get_setting('key', item.channel) and jstr:
|
||||||
jshe = 'var document = {}, location = {}'
|
jshe = 'var document = {}, location = {}'
|
||||||
aesjs = str(support.match(host + '/aes.min.js').data)
|
aesjs = str(support.match(host + '/aes.min.js').data)
|
||||||
|
|||||||
Reference in New Issue
Block a user