1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[8chan] fix downloaded files by sending 'TOS' cookie (#5578)

This commit is contained in:
Mike Fährmann 2024-05-11 15:34:21 +02:00
parent d2f50ecf09
commit 5b6b5dd81b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -26,6 +26,9 @@ class _8chanExtractor(Extractor):
self.root = "https://8chan." + match.group(1)
Extractor.__init__(self, match)
def _init(self):
self.cookies.set("TOS", "1", domain=self.root.rpartition("/")[2])
@memcache()
def cookies_prepare(self):
# fetch captcha cookies