summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/8chan.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/8chan.py')
-rw-r--r--gallery_dl/extractor/8chan.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gallery_dl/extractor/8chan.py b/gallery_dl/extractor/8chan.py
index afa3a69..f81d2a1 100644
--- a/gallery_dl/extractor/8chan.py
+++ b/gallery_dl/extractor/8chan.py
@@ -29,8 +29,10 @@ class _8chanExtractor(Extractor):
def _init(self):
now = util.datetime_utcnow()
domain = self.root.rpartition("/")[2]
- self.cookies.set("TOS20240928", "1", domain=domain)
- self.cookies.set(now.strftime("TOS%Y%m%d"), "1", domain=domain)
+ self.cookies.set(
+ now.strftime("TOS%Y%m%d"), "1", domain=domain)
+ self.cookies.set(
+ (now - timedelta(1)).strftime("TOS%Y%m%d"), "1", domain=domain)
@memcache()
def cookies_prepare(self):