[check] some changes
This commit is contained in:
parent
e89c29d0cc
commit
a8db4e6ba3
@ -461,20 +461,17 @@ async def vstream(c: Client, m: Message):
|
|||||||
await loser.edit(f"❌ yt-dl issues detected\n\n» `{livelink}`")
|
await loser.edit(f"❌ yt-dl issues detected\n\n» `{livelink}`")
|
||||||
else:
|
else:
|
||||||
songname = search[0]
|
songname = search[0]
|
||||||
thumbnail = search[3]
|
|
||||||
image = thumbnail
|
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
await loser.edit("🔄 Queueing Track...")
|
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()
|
await loser.delete()
|
||||||
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
||||||
buttons = stream_markup(user_id)
|
buttons = stream_markup(user_id)
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=image,
|
photo=f"{IMG_1}",
|
||||||
reply_markup=InlineKeyboardMarkup(buttons),
|
reply_markup=InlineKeyboardMarkup(buttons),
|
||||||
caption=f"💡 **Track added to queue »** `{pos}`\n\n🗂 **Name:** [{songname}]({url}) | `live`\n🧸 **Requested by:** {requester}",
|
caption=f"💡 **Track added to queue »** `{pos}`\n\n🗂 **Name:** [{songname}]({url}) | `live`\n🧸 **Requested by:** {requester}",
|
||||||
)
|
)
|
||||||
remove_if_exists(image)
|
|
||||||
else:
|
else:
|
||||||
if Q == 720:
|
if Q == 720:
|
||||||
amaze = HighQualityVideo()
|
amaze = HighQualityVideo()
|
||||||
@ -495,19 +492,18 @@ async def vstream(c: Client, m: Message):
|
|||||||
),
|
),
|
||||||
stream_type=StreamType().live_stream,
|
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()
|
await loser.delete()
|
||||||
requester = (
|
requester = (
|
||||||
f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
||||||
)
|
)
|
||||||
buttons = stream_markup(user_id)
|
buttons = stream_markup(user_id)
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=image,
|
photo=f"{IMG_2}",
|
||||||
reply_markup=InlineKeyboardMarkup(buttons),
|
reply_markup=InlineKeyboardMarkup(buttons),
|
||||||
caption=f"🗂 **Name:** [{songname}]({url}) | `live`\n🧸 **Requested by:** {requester}",
|
caption=f"🗂 **Name:** [{songname}]({url}) | `live`\n🧸 **Requested by:** {requester}",
|
||||||
)
|
)
|
||||||
await idle()
|
await idle()
|
||||||
remove_if_exists(image)
|
|
||||||
except Exception as ep:
|
except Exception as ep:
|
||||||
await loser.delete()
|
await loser.delete()
|
||||||
await remove_active_chat(chat_id)
|
await remove_active_chat(chat_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user