mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
[8chan] dynamically generate 'TOS' cookie name
This commit is contained in:
parent
4e9dd036e7
commit
0389575e0f
@ -27,8 +27,10 @@ class _8chanExtractor(Extractor):
|
|||||||
Extractor.__init__(self, match)
|
Extractor.__init__(self, match)
|
||||||
|
|
||||||
def _init(self):
|
def _init(self):
|
||||||
self.cookies.set(
|
now = util.datetime_utcnow()
|
||||||
"TOS20240918", "1", domain=self.root.rpartition("/")[2])
|
domain = self.root.rpartition("/")[2]
|
||||||
|
self.cookies.set("TOS20240928", "1", domain=domain)
|
||||||
|
self.cookies.set(now.strftime("TOS%Y%m%d"), "1", domain=domain)
|
||||||
|
|
||||||
@memcache()
|
@memcache()
|
||||||
def cookies_prepare(self):
|
def cookies_prepare(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user