import os from core.config import settings # More here https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/options.py YTDL_OPTS = { 'outtmpl': os.path.join(settings.TMP_DOWNLOAD_PATH, '%(title).200B.%(ext)s'), 'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4', 'noplaylist': True, 'max_downloads': 1, 'concurrent_fragment_downloads': 5, }