From ee6fd74c3f225a5b5bc32d4ebc8fc18e39ce67b4 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Sun, 19 Feb 2023 16:13:21 +0700 Subject: [PATCH] Update ytdl_download_new.py --- misskaty/plugins/ytdl_download_new.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/misskaty/plugins/ytdl_download_new.py b/misskaty/plugins/ytdl_download_new.py index 966fd5c6..7c2f7f4a 100644 --- a/misskaty/plugins/ytdl_download_new.py +++ b/misskaty/plugins/ytdl_download_new.py @@ -137,7 +137,7 @@ async def ytdl_gendl_callback(_, cq: CallbackQuery): delete_media=True, ) as ytdl: upload_key = await ytdl.download(cq.message.reply_to_message.command[1], uid, format_, cq, True, 3) - await ytdl.upload(app, upload_key, format_, cq, True) + await ytdl.upload(app, upload_key[0], format_, cq, True) else: uid = callback[2] type_ = callback[3] @@ -156,8 +156,7 @@ async def ytdl_gendl_callback(_, cq: CallbackQuery): True, 3, ) - LOGGER.info(upload_key) - await ytdl.upload(app, upload_key, format_, cq, True) + await ytdl.upload(app, upload_key[0], format_, cq, True) @app.on_callback_query(filters.regex(r"^ytdl_scroll"))