fix(download): support for yt-dlp cookies in media download

Introduces environment variable support for specifying yt-dlp cookies via file path or direct content for the media download command. Updates error handling to provide clearer messages when cookies are required and ensures temporary cookie files are cleaned up. Also updates .env.example and .gitignore to reflect these changes.
This commit is contained in:
neoarz
2025-10-03 12:49:50 -04:00
parent 85a43e66b0
commit 2c0b0afb39
3 changed files with 58 additions and 2 deletions

View File

@@ -3,4 +3,7 @@ PREFIX=YOUR_BOT_PREFIX_HERE
INVITE_LINK=YOUR_BOT_INVITE_LINK_HERE
# Commands you want to disable (comma separated)
DISABLED_COGS=general.context_menus
DISABLED_COGS=general.context_menus
# yt-dlp cookies (for media/download command)
YTDLP_COOKIE_FILE=/absolute/path/to/cookies.txt