fixes
This commit is contained in:
parent
6e314bc4f7
commit
606c78731b
@ -89,12 +89,14 @@ async def vplay(client, m: Message):
|
|||||||
await loser.edit(
|
await loser.edit(
|
||||||
"» __only 720, 480, 360 allowed__ \n💡 **now streaming video in 720p**"
|
"» __only 720, 480, 360 allowed__ \n💡 **now streaming video in 720p**"
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
if replied.video:
|
if replied.video:
|
||||||
songname = replied.video.file_name[:70]
|
songname = replied.video.file_name[:70]
|
||||||
elif replied.document:
|
elif replied.document:
|
||||||
songname = replied.document.file_name[:70]
|
songname = replied.document.file_name[:70]
|
||||||
|
except:
|
||||||
|
songname = "Video"
|
||||||
|
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
pos = add_to_queue(chat_id, songname, dl, link, "Video", Q)
|
pos = add_to_queue(chat_id, songname, dl, link, "Video", Q)
|
||||||
await loser.delete()
|
await loser.delete()
|
||||||
|
Loading…
Reference in New Issue
Block a user