diff --git a/docs/configuration.rst b/docs/configuration.rst index ee1567a9..e21a2cd2 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -1349,6 +1349,20 @@ Description * ``"none"``: Don't download textual content. +extractor.deviantart.jwt +------------------------ +Type + ``bool`` +Default + ``false`` +Description + Update `JSON Web Tokens `__ (the ``token`` URL parameter) + of otherwise non-downloadable, low-resolution images + to be able to download them in full resolution. + + Note: This got patched by DeviantArt on 2023-09-19 and no longer works. + + extractor.deviantart.mature --------------------------- Type diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index 8cffd3a1..8150c2c1 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -42,6 +42,7 @@ class DeviantartExtractor(Extractor): self.offset = 0 def _init(self): + self.jwt = self.config("jwt", False) self.flat = self.config("flat", True) self.extra = self.config("extra", False) self.original = self.config("original", True) @@ -122,7 +123,7 @@ class DeviantartExtractor(Extractor): if self.original and deviation["is_downloadable"]: self._update_content(deviation, content) - else: + elif self.jwt: self._update_token(deviation, content) yield self.commit(deviation, content)