You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
komandr/plugins/dpt.py

12 lines
451 B

depends = ["bprint", "meido"]
from time import sleep
def run(l):
while True:
pages = l['meido'].instance.get_catalog("g")
for page in pages:
for thread in page["threads"]:
if not thread.get("sub"): continue
if "/dpt/" in thread["sub"]:
l["sand"].box["dpt"] = thread["no"]
l["bprint"].p(f"found /dpt/! thread no: {thread['no']}")
sleep(60)