check more pages
This commit is contained in:
parent
d1390d73b8
commit
897c0f8ef5
3
main.py
3
main.py
@ -122,7 +122,8 @@ async def check_updates():
|
|||||||
for tl_idx in range(0, len(tag_list), 40):
|
for tl_idx in range(0, len(tag_list), 40):
|
||||||
tags = ' '.join(f'~{tag}' for tag in tag_list[tl_idx: tl_idx + 40])
|
tags = ' '.join(f'~{tag}' for tag in tag_list[tl_idx: tl_idx + 40])
|
||||||
logging.warning(tags)
|
logging.warning(tags)
|
||||||
posts = await e621.get_posts(tags)
|
for page in range(1, 11):
|
||||||
|
posts = await e621.get_posts(tags, page)
|
||||||
if not posts:
|
if not posts:
|
||||||
return
|
return
|
||||||
already_sent: List = await redis.smismember('e621:sent', [p.id for p in posts])
|
already_sent: List = await redis.smismember('e621:sent', [p.id for p in posts])
|
||||||
|
Loading…
Reference in New Issue
Block a user