From 606c78731b1cefb1e7cfa0e5dc7f18b8486f1f68 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 1 Nov 2021 10:15:46 +0700 Subject: [PATCH] fixes --- program/video.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/program/video.py b/program/video.py index 9aecd87..22e1381 100644 --- a/program/video.py +++ b/program/video.py @@ -89,12 +89,14 @@ async def vplay(client, m: Message): await loser.edit( "» __only 720, 480, 360 allowed__ \n💡 **now streaming video in 720p**" ) - - if replied.video: - songname = replied.video.file_name[:70] - elif replied.document: - songname = replied.document.file_name[:70] - + try: + if replied.video: + songname = replied.video.file_name[:70] + elif replied.document: + songname = replied.document.file_name[:70] + except: + songname = "Video" + if chat_id in QUEUE: pos = add_to_queue(chat_id, songname, dl, link, "Video", Q) await loser.delete()