From 50a61e7c4abd4863dc5b4682e6569a2d2c3ff4ae Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 21 Feb 2022 07:56:14 +0700 Subject: [PATCH] fixing --- program/video.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/program/video.py b/program/video.py index 9f55976..61dca61 100644 --- a/program/video.py +++ b/program/video.py @@ -460,13 +460,7 @@ async def vstream(c: Client, m: Message): if veez == 0: await loser.edit(f"โŒ yt-dl issues detected\n\nยป `{livelink}`") else: - title = search[0] songname = search[0] - thumbnail = search[1] - userid = m.from_user.id - gcname = m.chat.title - ctitle = await CHAT_TITLE(gcname) - image = await thumb(thumbnail, title, userid, ctitle) if chat_id in QUEUE: await loser.edit("๐Ÿ”„ Queueing Track...") pos = add_to_queue(chat_id, "Live Stream", livelink, url, "Video", Q) @@ -474,7 +468,7 @@ async def vstream(c: Client, m: Message): 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 video`\n๐Ÿงธ **Requested by:** {requester}", ) @@ -506,7 +500,7 @@ async def vstream(c: Client, m: Message): ) 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 video`\n๐Ÿงธ **Requested by:** {requester}", )