[artstation] prevent CF challenges (#5817, #5658, #5564, #5554)

This commit is contained in:
Mike Fährmann
2025-01-26 13:10:53 +01:00
parent 4003e4b688
commit 954796a466
2 changed files with 7 additions and 7 deletions

View File

@@ -21,14 +21,15 @@ class ArtstationExtractor(Extractor):
filename_fmt = "{category}_{id}_{asset[id]}_{title}.{extension}"
directory_fmt = ("{category}", "{userinfo[username]}")
archive_fmt = "{asset[id]}"
browser = "firefox"
tls12 = False
root = "https://www.artstation.com"
def __init__(self, match):
Extractor.__init__(self, match)
self.user = match.group(1) or match.group(2)
def _init(self):
self.session.headers["Cache-Control"] = "max-age=0"
def items(self):
videos = self.config("videos", True)
previews = self.config("previews", False)