From eea17c48f6ff4127a2681d5ed7f901f055869c80 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 31 Oct 2021 05:49:09 +0700 Subject: [PATCH] none --- program/music.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program/music.py b/program/music.py index 180bcbc..767719a 100644 --- a/program/music.py +++ b/program/music.py @@ -22,7 +22,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}" @@ -74,9 +74,9 @@ async def play(_, m: Message): link = replied.link if replied.audio: if replied.audio.title: - songname = replied.audio.title[:60] + "..." + songname = replied.audio.title[:70] else: - songname = replied.audio.file_name[:60] + "..." + songname = replied.audio.file_name[:70] elif replied.voice: songname = "Voice Note" if chat_id in QUEUE: