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']}"