Skip to content

Commit

Permalink
[8chan] fix downloaded files by sending 'TOS' cookie (#5578)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed May 11, 2024
1 parent d2f50ec commit 5b6b5dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gallery_dl/extractor/8chan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b6b5dd

Please sign in to comment.