diff --git a/gallery_dl/extractor/8chan.py b/gallery_dl/extractor/8chan.py index afa3a698..f81d2a1f 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): diff --git a/test/results/8chan.py b/test/results/8chan.py index df281680..e9dc0cf4 100644 --- a/test/results/8chan.py +++ b/test/results/8chan.py @@ -30,7 +30,7 @@ __tests__ = ( "markdown" : str, "maxFileCount" : 5, "maxFileSize" : "32.00 MB", - "maxMessageLength": 8001, + "maxMessageLength": 12000, "message" : str, "mime" : str, "name" : "Anonymous", @@ -73,7 +73,7 @@ __tests__ = ( "#category": ("", "8chan", "board"), "#class" : _8chan._8chanBoardExtractor, "#pattern" : _8chan._8chanThreadExtractor.pattern, - "#count" : range(24, 28), + "#count" : range(24, 32), }, {