From a8db4e6ba3001e4538bb46fb82b1661f69a87c42 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 21 Feb 2022 09:01:52 +0700 Subject: [PATCH] [check] some changes --- program/video.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/program/video.py b/program/video.py index 8c0959a..c12a528 100644 --- a/program/video.py +++ b/program/video.py @@ -461,20 +461,17 @@ async def vstream(c: Client, m: Message): await loser.edit(f"โŒ yt-dl issues detected\n\nยป `{livelink}`") else: songname = search[0] - thumbnail = search[3] - image = thumbnail if chat_id in QUEUE: await loser.edit("๐Ÿ”„ Queueing Track...") - pos = add_to_queue(chat_id, "live stream", livelink, url, "video", Q) + pos = add_to_queue(chat_id, songname, livelink, url, "live", Q) await loser.delete() requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})" buttons = stream_markup(user_id) await m.reply_photo( - photo=image, + photo=f"{IMG_1}", reply_markup=InlineKeyboardMarkup(buttons), caption=f"๐Ÿ’ก **Track added to queue ยป** `{pos}`\n\n๐Ÿ—‚ **Name:** [{songname}]({url}) | `live`\n๐Ÿงธ **Requested by:** {requester}", ) - remove_if_exists(image) else: if Q == 720: amaze = HighQualityVideo() @@ -495,19 +492,18 @@ async def vstream(c: Client, m: Message): ), stream_type=StreamType().live_stream, ) - add_to_queue(chat_id, "live stream", livelink, url, "video", Q) + add_to_queue(chat_id, songname, livelink, url, "live", Q) await loser.delete() requester = ( f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})" ) buttons = stream_markup(user_id) await m.reply_photo( - photo=image, + photo=f"{IMG_2}", reply_markup=InlineKeyboardMarkup(buttons), caption=f"๐Ÿ—‚ **Name:** [{songname}]({url}) | `live`\n๐Ÿงธ **Requested by:** {requester}", ) await idle() - remove_if_exists(image) except Exception as ep: await loser.delete() await remove_active_chat(chat_id)