[artstation] download '/8k/' images (#9003)

This commit is contained in:
Mike Fährmann
2026-02-05 16:45:55 +01:00
parent fdc59efdda
commit 04442e262e
2 changed files with 11 additions and 33 deletions

View File

@@ -64,7 +64,7 @@ class ArtstationExtractor(Extractor):
if "/images/images/" in url:
lhs, _, rhs = url.partition("/large/")
if rhs:
url = f"{lhs}/4k/{rhs}"
url = f"{lhs}/8k/{rhs}"
asset["_fallback"] = self._image_fallback(lhs, rhs)
yield Message.Url, url, asset
@@ -103,6 +103,7 @@ class ArtstationExtractor(Extractor):
adict.get("id"))
def _image_fallback(self, lhs, rhs):
yield f"{lhs}/4k/{rhs}"
yield f"{lhs}/large/{rhs}"
yield f"{lhs}/medium/{rhs}"
yield f"{lhs}/small/{rhs}"