mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-02-01 03:51:42 +01:00
[weibo] fix Sina Visitor request
This commit is contained in:
parent
68e72a836c
commit
56cd9d408d
@ -191,7 +191,7 @@ class WeiboExtractor(Extractor):
|
|||||||
headers = {"Referer": response.url}
|
headers = {"Referer": response.url}
|
||||||
data = {
|
data = {
|
||||||
"cb": "gen_callback",
|
"cb": "gen_callback",
|
||||||
"fp": '{"os":"1","browser":"Gecko91,0,0,0","fonts":"undefined",'
|
"fp": '{"os":"1","browser":"Gecko109,0,0,0","fonts":"undefined",'
|
||||||
'"screenInfo":"1920*1080*24","plugins":""}',
|
'"screenInfo":"1920*1080*24","plugins":""}',
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,8 +203,8 @@ class WeiboExtractor(Extractor):
|
|||||||
params = {
|
params = {
|
||||||
"a" : "incarnate",
|
"a" : "incarnate",
|
||||||
"t" : data["tid"],
|
"t" : data["tid"],
|
||||||
"w" : "2",
|
"w" : "3" if data.get("new_tid") else "2",
|
||||||
"c" : "{:>03}".format(data["confidence"]),
|
"c" : "{:>03}".format(data.get("confidence") or 100),
|
||||||
"gc" : "",
|
"gc" : "",
|
||||||
"cb" : "cross_domain",
|
"cb" : "cross_domain",
|
||||||
"from" : "weibo",
|
"from" : "weibo",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user