diff --git a/misskaty/plugins/scrapwebsite.py b/misskaty/plugins/scrapwebsite.py index 0e32e13c..0cecd203 100644 --- a/misskaty/plugins/scrapwebsite.py +++ b/misskaty/plugins/scrapwebsite.py @@ -661,7 +661,7 @@ async def terbit21_scrap(_, msg): msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\n" msgs += ( f"šŸ’  Download\n\n" - if ["Complete", "Ongoing"] not in i["kategori"] + if "Complete" or "Ongoing" not in i["kategori"] else "" ) if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000: @@ -717,7 +717,7 @@ async def terbit21_scrap(_, msg): msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\n" msgs += ( f"šŸ’  Download\n\n" - if ["complete", "ongoing"] not in i["kategori"] + if "Complete" or "Ongoing" not in i["kategori"] else "" ) if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000: @@ -781,7 +781,7 @@ async def lk21_scrap(_, msg): msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\n" msgs += ( f"šŸ’  Download\n\n" - if ["complete", "ongoing"] not in i["kategori"] + if "Complete" or "Ongoing" not in i["kategori"] else "" ) if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000: @@ -838,6 +838,11 @@ async def lk21_scrap(_, msg): msgs = "" for c, i in enumerate(res["result"], start=1): msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\nšŸ’  Download\n\n" + msgs += ( + f"šŸ’  Download\n\n" + if "Complete" or "Ongoing" not in i["kategori"] + else "" + ) if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000: await msg.reply( head + msgs,