Fix maxstream (support CAPTCHA)

This commit is contained in:
mac12m99
2021-10-17 11:11:24 +02:00
parent 9dfc558dc5
commit cbb0d138ab
2 changed files with 26 additions and 18 deletions

View File

@@ -633,8 +633,8 @@ class UnshortenIt(object):
try:
id = uri.split('/')[-2]
reqUrl = 'https://stayonline.pro/ajax/linkView.php'
p = urlencode({"id": id})
r = httptools.downloadpage(reqUrl, post=p)
p = urlencode({"id": id, "ref": ""})
r = httptools.downloadpage(reqUrl, post=p, headers={'Referer': uri})
data = r.data
try:
import json