diff --git a/misskaty/plugins/web_scraper.py b/misskaty/plugins/web_scraper.py index 9a23b26b..36044ab5 100644 --- a/misskaty/plugins/web_scraper.py +++ b/misskaty/plugins/web_scraper.py @@ -171,10 +171,10 @@ async def getDataGomov(msg, kueri, CurrentPage): index = int(CurrentPage - 1) PageLen = len(SCRAP_DICT[msg.id][0]) - gomovResult = f"#Gomov Results For: {kueri}\n\n" if kueri else f"#Gomov Latest:\nšŸŒ€ Use /{msg.command[0]} [title] to start search with title.\n\n" + gomovResult = f"#Gomov Results For: {kueri}\n\n" if kueri else f"#Gomov Latest:\nšŸŒ€ Use /gomov [title] to start search with title.\n\n" for c, i in enumerate(SCRAP_DICT[msg.id][0][index], start=1): gomovResult += f"{c}. {i['judul']}\nGenre: {i['genre']}\n" - gomovResult += "\n" if re.search(r"Series", i["genre"]) else f"Extract: /{msg.command[0]}_scrap {i['link']}\n\n" + gomovResult += "\n" if re.search(r"Series", i["genre"]) else f"Extract: /gomov_scrap {i['link']}\n\n" IGNORE_CHAR = "[]" gomovResult = ''.join(i for i in gomovResult if not i in IGNORE_CHAR) return gomovResult, PageLen