diff options
Diffstat (limited to 'gallery_dl/extractor/deviantart.py')
| -rw-r--r-- | gallery_dl/extractor/deviantart.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index f3ea4e7..ea70b58 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -69,11 +69,12 @@ class DeviantartExtractor(Extractor): self.quality = ",q_{}".format(self.quality) self.quality_sub = re.compile(r",q_\d+").sub - if self.original != "image": - self._update_content = self._update_content_default - else: - self._update_content = self._update_content_image + if isinstance(self.original, str) and \ + self.original.lower().startswith("image"): self.original = True + self._update_content = self._update_content_image + else: + self._update_content = self._update_content_default journals = self.config("journals", "html") if journals == "html": @@ -1462,6 +1463,8 @@ class DeviantartOAuthAPI(): return if "next_cursor" in data: + if not data["next_cursor"]: + return params["offset"] = None params["cursor"] = data["next_cursor"] elif data["next_offset"] is not None: |
