mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
[skeb] prevent 429 errors and need for 'request_key' cookie
https://github.com/danbooru/danbooru/pull/5795
This commit is contained in:
parent
e8c5b57a33
commit
f0267f969a
@ -26,7 +26,11 @@ class SkebExtractor(Extractor):
|
|||||||
def _init(self):
|
def _init(self):
|
||||||
self.thumbnails = self.config("thumbnails", False)
|
self.thumbnails = self.config("thumbnails", False)
|
||||||
self.article = self.config("article", False)
|
self.article = self.config("article", False)
|
||||||
self.headers = {"Accept": "application/json, text/plain, */*"}
|
self.headers = {
|
||||||
|
"Accept": "application/json, text/plain, */*",
|
||||||
|
"sec-fetch-mode": "cors",
|
||||||
|
"sec-fetch-site": "same-origin",
|
||||||
|
}
|
||||||
|
|
||||||
if "Authorization" not in self.session.headers:
|
if "Authorization" not in self.session.headers:
|
||||||
self.headers["Authorization"] = "Bearer null"
|
self.headers["Authorization"] = "Bearer null"
|
||||||
|
Loading…
Reference in New Issue
Block a user