mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-01-31 11:41:35 +01:00
[danbooru] handle posts without 'id' (fixes #1004)
This commit is contained in:
parent
cc1fb0b4ea
commit
2626629117
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user