This commit is contained in:
yasir 2023-03-16 12:25:25 +07:00
parent ab8bd8451b
commit 207d4b4519

View file

@ -191,8 +191,7 @@ async def dlsub_callback(client, callback_query):
res = await down_page(link)
judul = res.get("title")
dl = scraper.get(res.get("download_url"))
f = await aiofiles.open({judul}.zip, mode='wb')
await f.write(dl.content)
await f.close()
f = open({judul}.zip, mode='wb').write(dl.content)
f.close()
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")