From d0bf08b6de2ec29390adfac89ba2be218e36c100 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Wed, 31 Jul 2024 17:57:35 -0400 Subject: [PATCH] Fix downloads starting to fail --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 18719b9..346d3b5 100644 --- a/main.py +++ b/main.py @@ -45,7 +45,7 @@ async def check_new_videos(): os.makedirs(channel_download_dir, exist_ok=True) ydl_opts = { - 'format': 'best', + 'format': 'bestvideo+bestaudio/best', 'outtmpl': f'{channel_download_dir}/%(title)s [%(id)s].%(ext)s', } @@ -66,5 +66,4 @@ async def on_ready(): print(f'{bot.user.name} has connected to Discord!') check_new_videos.start() -bot.run(DISCORD_BOT_TOKEN) - +bot.run(DISCORD_BOT_TOKEN) \ No newline at end of file