Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism authored Sep 24, 2024
1 parent 5a4c5f1 commit eebbfdc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions misskaty/plugins/web_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1460,12 +1460,10 @@ async def muviku_scrap(_, message, strings):
data.append({"link": link, "kualitas": kualitas})
if not data:
return await message.reply(strings("no_result"))
res = "".join(
f"<b>Host: {i['kualitas']}</b>\n{i['link']}\n\n" for i in data
)
res = "".join(f"<b>Host: <a href='{i['link']}'>{i['kualitas']}</a></b>\n\n" for i in data)
await message.reply_msg(res)
except MessageTooLong:
url = await post_to_telegraph(False, link, res)
url = await post_to_telegraph(False, link, res.replace("\n", "<br>")
await message.reply_msg(f"Your result is too long, i have pasted your result on Telegraph:\n{url}")
except IndexError:
return await message.reply(
Expand Down

0 comments on commit eebbfdc

Please sign in to comment.