From c4f9a189a90abcc97ebce0e03572644411c6c070 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Tue, 18 Jan 2022 12:52:25 +0700 Subject: [PATCH] something --- driver/utils.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/driver/utils.py b/driver/utils.py index 5bf6bb4..8682b81 100644 --- a/driver/utils.py +++ b/driver/utils.py @@ -43,7 +43,8 @@ async def skip_current_song(chat_id): url = chat_queue[1][1] link = chat_queue[1][2] type = chat_queue[1][3] - Q = chat_queue[1][4] + resol = chat_queue[1][4] + image = chat_queue[1][5] if type == "Audio": await call_py.change_stream( chat_id, @@ -52,17 +53,22 @@ async def skip_current_song(chat_id): ), ) elif type == "Video": - if Q == 720: + if resol == 720: hm = HighQualityVideo() - elif Q == 480: + elif resol == 480: hm = MediumQualityVideo() - elif Q == 360: + elif resol == 360: hm = LowQualityVideo() await call_py.change_stream( - chat_id, AudioVideoPiped(url, HighQualityAudio(), hm) + chat_id, + AudioVideoPiped( + url, + HighQualityAudio(), + hm + ) ) pop_an_item(chat_id) - return [songname, link, type] + return [songname, link, type, image] except: await call_py.leave_group_call(chat_id) clear_queue(chat_id)