Skip to content

Commit

Permalink
[bcbnsfw] use '*' as query when retrieving all posts (#6135)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Sep 5, 2024
1 parent 0b3d728 commit 513fd26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gallery_dl/extractor/szurubooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def _prepare(post):
"bcbnsfw": {
"root": "https://booru.bcbnsfw.space",
"pattern": r"booru\.bcbnsfw\.space",
"query-all": "*",
},
"snootbooru": {
"root": "https://snootbooru.com",
Expand All @@ -110,7 +111,12 @@ def metadata(self):
return {"search_tags": self.query}

def posts(self):
return self._pagination("/posts/", {"query": self.query})
if self.query.strip():
query = self.query
else:
query = self.config_instance("query-all")

return self._pagination("/posts/", {"query": query})


class SzurubooruPostExtractor(SzurubooruExtractor):
Expand Down

0 comments on commit 513fd26

Please sign in to comment.