Update web_scraper.py

This commit is contained in:
Yasir Aris M 2024-09-24 11:16:24 +07:00 committed by GitHub
parent b6c6091127
commit b42139e8c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1507,7 +1507,8 @@ async def movieku_scrap(_, callback_query, strings):
url = await post_to_telegraph(False, link, "<br>".join(output))
return await callback_query.message.edit_msg(strings("res_scrape").format(link=link, kl=f"Your result is too long, i have pasted your result on Telegraph:\n{url}"), reply_markup=keyboard)
if "\n".join(output) == "":
output = "\n".join("\nOpen link in browser, click on episode page and use /movieku_scrap [page link] commands for extract download link")
output = "\nOpen link in browser, click on episode page and use /movieku_scrap [page link] commands for extract download link"
return await callback_query.message.edit_msg(strings("res_scrape").format(link=link, kl=output), reply_markup=keyboard)
await callback_query.message.edit_msg(strings("res_scrape").format(link=link, kl="\n".join(output)), reply_markup=keyboard)
except httpx.HTTPError as exc:
await callback_query.message.edit_msg(