From 5b6b5dd81b0e8726e04e8b5e9f50665d0a3eddbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 11 May 2024 15:34:21 +0200 Subject: [PATCH] [8chan] fix downloaded files by sending 'TOS' cookie (#5578) --- gallery_dl/extractor/8chan.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/extractor/8chan.py b/gallery_dl/extractor/8chan.py index fc16f43cb2..a4b0997725 100644 --- a/gallery_dl/extractor/8chan.py +++ b/gallery_dl/extractor/8chan.py @@ -26,6 +26,9 @@ def __init__(self, match): 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