mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +00:00
subdl
This commit is contained in:
parent
4bb25f7425
commit
5873b078c6
1 changed files with 1 additions and 3 deletions
|
|
@ -191,8 +191,6 @@ async def dlsub_callback(client, callback_query):
|
||||||
res = await down_page(link)
|
res = await down_page(link)
|
||||||
judul = res.get("title")
|
judul = res.get("title")
|
||||||
dl = scraper.get(res.get("download_url"))
|
dl = scraper.get(res.get("download_url"))
|
||||||
f = open(f"{judul}.zip", mode='wb')
|
f = open(f"{judul}.zip", mode='wb').write(dl.content)
|
||||||
f.write(dl.read())
|
|
||||||
f.close()
|
|
||||||
await callback_query.message.reply_document(f"{judul}.zip", caption=f"Title: {judul}\nIMDb: {res['imdb']}\nAuthor: {res['author_name']}")
|
await callback_query.message.reply_document(f"{judul}.zip", caption=f"Title: {judul}\nIMDb: {res['imdb']}\nAuthor: {res['author_name']}")
|
||||||
os.remove(f"{judul}.zip")
|
os.remove(f"{judul}.zip")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue