Skip to content

Commit

Permalink
feat(client): increase hard limit posts
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkaroid committed May 16, 2022
1 parent 2ba59bd commit f9e5bfd
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions booru/client/atfbooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -170,7 +170,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/behoimi.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down Expand Up @@ -145,7 +145,7 @@ async def get_image(self, query: str, limit: int = 100, page: int = 1):
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down
4 changes: 2 additions & 2 deletions booru/client/danbooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -178,7 +178,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/derpibooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down Expand Up @@ -149,7 +149,7 @@ async def get_image(self, query: str, limit: int = 100, page: int = 1):
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down
4 changes: 2 additions & 2 deletions booru/client/e621.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -168,7 +168,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/e926.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -168,7 +168,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/furbooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down Expand Up @@ -149,7 +149,7 @@ async def get_image(self, query: str, limit: int = 100, page: int = 1):
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down
4 changes: 2 additions & 2 deletions booru/client/gelbooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -171,7 +171,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/hypnohub.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -172,7 +172,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/konachan.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down Expand Up @@ -135,7 +135,7 @@ async def get_image(self, query: str, limit: int = 100, page: int = 1):
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down
4 changes: 2 additions & 2 deletions booru/client/konachan_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down Expand Up @@ -135,7 +135,7 @@ async def get_image(self, query: str, limit: int = 100, page: int = 1):
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down
4 changes: 2 additions & 2 deletions booru/client/lolibooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down Expand Up @@ -136,7 +136,7 @@ async def get_image(self, query: str, limit: int = 100, page: int = 1):
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down
4 changes: 2 additions & 2 deletions booru/client/paheal.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down Expand Up @@ -138,7 +138,7 @@ async def get_image(self, query: str, limit: int = 100, page: int = 1):
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down
4 changes: 2 additions & 2 deletions booru/client/realbooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -195,7 +195,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/rule34.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -154,7 +154,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/safebooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -175,7 +175,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/tbib.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -176,7 +176,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/xbooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down Expand Up @@ -176,7 +176,7 @@ async def get_image(
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

if block and re.findall(block, query):
Expand Down
4 changes: 2 additions & 2 deletions booru/client/yandere.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def search(
if gacha:
limit = 100

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down Expand Up @@ -134,7 +134,7 @@ async def get_image(self, query: str, limit: int = 100, page: int = 1):
"""

if limit > 100:
if limit > 1000:
raise ValueError(Booru.error_handling_limit)

else:
Expand Down

0 comments on commit f9e5bfd

Please sign in to comment.