From 2d56eadf02bb556364dd43df72fb1a6c9a44e803 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Thu, 28 Oct 2021 22:19:33 +0700 Subject: [PATCH] none --- program/video.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program/video.py b/program/video.py index 6bffa54..9350743 100644 --- a/program/video.py +++ b/program/video.py @@ -20,7 +20,7 @@ def ytsearch(query): for r in search.result()["result"]: ytid = r['id'] if len(r['title']) > 34: - songname = r['title'][:45] + "..." + songname = r['title'][:50] + "..." else: songname = r['title'] url = f"https://www.youtube.com/watch?v={ytid}" @@ -81,9 +81,9 @@ 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[:45] + "..." + songname = replied.video.file_name[:50] + "..." elif replied.document: - songname = replied.document.file_name[:45] + "..." + songname = replied.document.file_name[:50] + "..." if chat_id in QUEUE: pos = add_to_queue(chat_id, songname, dl, link, "Video", Q)