mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2025-03-03 02:03:30 +08:00
12 lines
365 B
Python
12 lines
365 B
Python
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,
|
|
}
|