This commit is contained in:
levina 2022-01-18 13:58:48 +07:00 committed by GitHub
parent 38849c4231
commit 5cb4d4076e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,7 @@ async def play(c: Client, m: Message):
else:
if chat_id in QUEUE:
pos = add_to_queue(
chat_id, songname, ytlink, url, image, "Audio", 0
chat_id, songname, ytlink, url, image, duration, "Audio", 0
)
await suhu.delete()
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
@ -205,7 +205,7 @@ async def play(c: Client, m: Message):
),
stream_type=StreamType().local_stream,
)
add_to_queue(chat_id, songname, ytlink, url, "Audio", 0)
add_to_queue(chat_id, songname, ytlink, url, image, duration, "Audio", 0)
await suhu.delete()
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
await m.reply_photo(
@ -244,7 +244,7 @@ async def play(c: Client, m: Message):
await suhu.edit(f"❌ yt-dl issues detected\n\n» `{ytlink}`")
else:
if chat_id in QUEUE:
pos = add_to_queue(chat_id, songname, ytlink, url, image, "Audio", 0)
pos = add_to_queue(chat_id, songname, ytlink, url, image, duration, "Audio", 0)
await suhu.delete()
requester = (
f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
@ -264,7 +264,7 @@ async def play(c: Client, m: Message):
),
stream_type=StreamType().local_stream,
)
add_to_queue(chat_id, songname, ytlink, url, "Audio", 0)
add_to_queue(chat_id, songname, ytlink, url, image, duration, "Audio", 0)
await suhu.delete()
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
await m.reply_photo(