diff options
| author | 2020-09-28 18:27:46 -0400 | |
|---|---|---|
| committer | 2020-09-28 18:27:46 -0400 | |
| commit | 9074eee175f76b824fbb6695d56426105191c51c (patch) | |
| tree | 2294be463d325d7092e600d88f160027c437086d /gallery_dl/extractor/danbooru.py | |
| parent | 261c8c2bc74969e2242a153297895684742b6995 (diff) | |
New upstream version 1.15.0.upstream/1.15.0
Diffstat (limited to 'gallery_dl/extractor/danbooru.py')
| -rw-r--r-- | gallery_dl/extractor/danbooru.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gallery_dl/extractor/danbooru.py b/gallery_dl/extractor/danbooru.py index e0edf89..1ebaf5b 100644 --- a/gallery_dl/extractor/danbooru.py +++ b/gallery_dl/extractor/danbooru.py @@ -93,7 +93,12 @@ class DanbooruExtractor(SharedConfigMixin, Extractor): if pagenum: params["page"] += 1 else: - params["page"] = "b{}".format(posts[-1]["id"]) + for post in reversed(posts): + if "id" in post: + params["page"] = "b{}".format(post["id"]) + break + else: + return class DanbooruTagExtractor(DanbooruExtractor): |
