From 56cd9d408de9eec5d406f7763a3b162a8b529c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 30 Oct 2023 22:14:52 +0100 Subject: [PATCH] [weibo] fix Sina Visitor request --- gallery_dl/extractor/weibo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/weibo.py b/gallery_dl/extractor/weibo.py index 168d5a0f..ed05e1f2 100644 --- a/gallery_dl/extractor/weibo.py +++ b/gallery_dl/extractor/weibo.py @@ -191,7 +191,7 @@ class WeiboExtractor(Extractor): headers = {"Referer": response.url} data = { "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":""}', } @@ -203,8 +203,8 @@ class WeiboExtractor(Extractor): params = { "a" : "incarnate", "t" : data["tid"], - "w" : "2", - "c" : "{:>03}".format(data["confidence"]), + "w" : "3" if data.get("new_tid") else "2", + "c" : "{:>03}".format(data.get("confidence") or 100), "gc" : "", "cb" : "cross_domain", "from" : "weibo",