This commit is contained in:
yasir 2023-01-09 10:03:50 +07:00
parent b9b4e1a519
commit 11e3f62462

View file

@ -661,7 +661,7 @@ async def terbit21_scrap(_, msg):
msgs += f"<b>{c}. <a href='{i['link']}'>{i['judul']}</a></b>\n<b>Category:</b> <code>{i['kategori']}</code>\n"
msgs += (
f"💠 <b><a href='{i['dl']}'>Download</a></b>\n\n"
if "Complete" or "Ongoing" not in i["kategori"]
if not re.search(r"Complete|Ongoing", 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"<b>{c}. <a href='{i['link']}'>{i['judul']}</a></b>\n<b>Category:</b> <code>{i['kategori']}</code>\n"
msgs += (
f"💠 <b><a href='{i['dl']}'>Download</a></b>\n\n"
if "Complete" or "Ongoing" not in i["kategori"]
if not re.search(r"Complete|Ongoing", 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"<b>{c}. <a href='{i['link']}'>{i['judul']}</a></b>\n<b>Category:</b> <code>{i['kategori']}</code>\n"
msgs += (
f"💠 <b><a href='{i['dl']}'>Download</a></b>\n\n"
if "Complete" or "Ongoing" not in i["kategori"]
if not re.search(r"Complete|Ongoing", i["kategori"])
else ""
)
if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000:
@ -840,7 +840,7 @@ async def lk21_scrap(_, msg):
msgs += f"<b>{c}. <a href='{i['link']}'>{i['judul']}</a></b>\n<b>Category:</b> <code>{i['kategori']}</code>\n"
msgs += (
f"💠 <b><a href='{i['dl']}'>Download</a></b>\n\n"
if "Complete" or "Ongoing" not in i["kategori"]
if not re.search(r"Complete|Ongoing", i["kategori"])
else ""
)
if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000: