diff --git a/misskaty/plugins/scrapwebsite.py b/misskaty/plugins/scrapwebsite.py
index 33b7ec69..2ec50fff 100644
--- a/misskaty/plugins/scrapwebsite.py
+++ b/misskaty/plugins/scrapwebsite.py
@@ -72,7 +72,12 @@ async def zonafilm(_, msg):
msgs = ""
await m.delete()
for c, i in enumerate(data, start=1):
- msgs += f"{c}. {i['judul']}\nGenre: {i['genre']}\nExtract: /{msg.command[0]}_scrap {i['link']}\n\n"
+ msgs += f"{c}. {i['judul']}\nGenre: {i['genre']}\n"
+ msgs += (
+ f"Extract: /{msg.command[0]}_scrap {i['link']}\n\n"
+ if not "/tv/" in i["link"]
+ else ""
+ )
if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000:
await msg.reply(
head + msgs,
@@ -653,7 +658,12 @@ async def terbit21_scrap(_, msg):
head = f"#Terbit21 Latest:\nš Use /{msg.command[0]} [title] to start search with title.\n\n"
msgs = ""
for c, i in enumerate(res["result"], start=1):
- msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\nš Download\n\n"
+ msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\n"
+ msgs += (
+ f"š Download\n\n"
+ if ["complete", "ongoing"] not in i["kategori"]
+ else ""
+ )
if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000:
await msg.reply(
head + msgs,
@@ -704,7 +714,12 @@ async def terbit21_scrap(_, msg):
head = f"#Terbit21 Results For: {title}\n\n"
msgs = ""
for c, i in enumerate(res["result"], start=1):
- msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\nš Download\n\n"
+ msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\n"
+ msgs += (
+ f"š Download\n\n"
+ if ["complete", "ongoing"] not in i["kategori"]
+ else ""
+ )
if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000:
await msg.reply(
head + msgs,
@@ -763,7 +778,12 @@ async def lk21_scrap(_, msg):
head = f"#Layarkaca21 Latest:\nš Use /{msg.command[0]} [title] to start search with title.\n\n"
msgs = ""
for c, i in enumerate(res["result"], start=1):
- msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\nš Download\n\n"
+ msgs += f"{c}. {i['judul']}\nCategory: {i['kategori']}\n"
+ msgs += (
+ f"š Download\n\n"
+ if ["complete", "ongoing"] not in i["kategori"]
+ else ""
+ )
if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000:
await msg.reply(
head + msgs,
@@ -891,7 +911,12 @@ async def gomov_scrap(_, msg):
msgs = ""
await m.delete()
for c, i in enumerate(data, start=1):
- msgs += f"{c}. {i['judul']}\nGenre: {i['genre']}\nExtract: /{msg.command[0]}_scrap {i['link']}\n\n"
+ msgs += f"{c}. {i['judul']}\nGenre: {i['genre']}\n"
+ msgs += (
+ f"Extract: /{msg.command[0]}_scrap {i['link']}\n\n"
+ if not "/tv/" in i["link"]
+ else ""
+ )
if len(head.encode("utf-8") + msgs.encode("utf-8")) >= 4000:
await msg.reply(
head + msgs,