none
This commit is contained in:
parent
2fcc60e8e6
commit
acab501af3
@ -42,7 +42,7 @@ ydl_opts = {
|
||||
def song(_, message):
|
||||
query = " ".join(message.command[1:])
|
||||
m = message.reply("🔎 finding song...")
|
||||
ydl_ops = {"format": "bestaudio[ext=m4a]"}
|
||||
ydl_ops = {"format": "bestaudio/best"}
|
||||
try:
|
||||
results = YoutubeSearch(query, max_results=1).to_dict()
|
||||
link = f"https://youtube.com{results[0]['url_suffix']}"
|
||||
|
Loading…
Reference in New Issue
Block a user