mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
[booru] call update_page() with correct dict (closes #82)
This commit is contained in:
parent
44c267e362
commit
3905474805
@ -60,7 +60,7 @@ class BooruExtractor(SharedConfigExtractor):
|
||||
|
||||
if len(images) < self.per_page:
|
||||
return
|
||||
self.update_page(data)
|
||||
self.update_page(images[-1])
|
||||
|
||||
def reset_page(self):
|
||||
"""Initialize params to point to the first page"""
|
||||
|
@ -37,6 +37,10 @@ class DanbooruTagExtractor(booru.TagMixin, DanbooruExtractor):
|
||||
("https://danbooru.donmai.us/posts?tags=bonocho", {
|
||||
"content": "b196fb9f1668109d7774a0a82efea3ffdda07746",
|
||||
}),
|
||||
# test page transitions
|
||||
("https://danbooru.donmai.us/posts?tags=canvas_%28cocktail_soft%29", {
|
||||
"count": ">= 50",
|
||||
}),
|
||||
("https://hijiribe.donmai.us/posts?tags=bonocho", None),
|
||||
("https://sonohara.donmai.us/posts?tags=bonocho", None),
|
||||
("https://safebooru.donmai.us/posts?tags=bonocho", None),
|
||||
@ -53,7 +57,7 @@ class DanbooruPoolExtractor(booru.PoolMixin, DanbooruExtractor):
|
||||
|
||||
class DanbooruPostExtractor(booru.PostMixin, DanbooruExtractor):
|
||||
"""Extractor for single images from danbooru"""
|
||||
pattern = [BASE_PATTERN + "/posts/(?P<post>\d+)"]
|
||||
pattern = [BASE_PATTERN + r"/posts/(?P<post>\d+)"]
|
||||
test = [("https://danbooru.donmai.us/posts/294929", {
|
||||
"content": "5e255713cbf0a8e0801dc423563c34d896bb9229",
|
||||
})]
|
||||
|
@ -80,7 +80,7 @@ class SeigaUserExtractor(SeigaExtractor):
|
||||
"user": {
|
||||
"id": 39537793,
|
||||
"message": str,
|
||||
"name": "Neko",
|
||||
"name": str,
|
||||
},
|
||||
"clips": int,
|
||||
"comments": int,
|
||||
|
Loading…
Reference in New Issue
Block a user