none
This commit is contained in:
parent
eea17c48f6
commit
9ca4bab451
@ -28,7 +28,7 @@ def ytsearch(query):
|
|||||||
for r in search.result()["result"]:
|
for r in search.result()["result"]:
|
||||||
ytid = r["id"]
|
ytid = r["id"]
|
||||||
if len(r["title"]) > 34:
|
if len(r["title"]) > 34:
|
||||||
songname = r["title"][:60] + "..."
|
songname = r["title"][:70]
|
||||||
else:
|
else:
|
||||||
songname = r["title"]
|
songname = r["title"]
|
||||||
url = f"https://www.youtube.com/watch?v={ytid}"
|
url = f"https://www.youtube.com/watch?v={ytid}"
|
||||||
@ -91,9 +91,9 @@ async def vplay(client, m: Message):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if replied.video:
|
if replied.video:
|
||||||
songname = replied.video.file_name[:60] + "..."
|
songname = replied.video.file_name[:70]
|
||||||
elif replied.document:
|
elif replied.document:
|
||||||
songname = replied.document.file_name[:60] + "..."
|
songname = replied.document.file_name[:70]
|
||||||
|
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user