From acab501af332961289baa9051649ba9bf9ba38ac Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 21 Jan 2022 23:42:01 +0700 Subject: [PATCH] none --- program/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/downloader.py b/program/downloader.py index 8375b1b..6aacb79 100644 --- a/program/downloader.py +++ b/program/downloader.py @@ -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']}"