From 9ca4bab45147b963ae7c0f66b52f9be646026d79 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 31 Oct 2021 05:49:56 +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 b0afffa..9aecd87 100644 --- a/program/video.py +++ b/program/video.py @@ -28,7 +28,7 @@ def ytsearch(query): for r in search.result()["result"]: ytid = r["id"] if len(r["title"]) > 34: - songname = r["title"][:60] + "..." + songname = r["title"][:70] else: songname = r["title"] url = f"https://www.youtube.com/watch?v={ytid}" @@ -91,9 +91,9 @@ async def vplay(client, m: Message): ) if replied.video: - songname = replied.video.file_name[:60] + "..." + songname = replied.video.file_name[:70] elif replied.document: - songname = replied.document.file_name[:60] + "..." + songname = replied.document.file_name[:70] if chat_id in QUEUE: pos = add_to_queue(chat_id, songname, dl, link, "Video", Q)