2022-03-18 04:09:03 +08:00
|
|
|
import os
|
|
|
|
|
2022-10-14 03:55:18 +08:00
|
|
|
from core.config import settings
|
2022-03-18 04:09:03 +08:00
|
|
|
|
2022-06-11 04:35:48 +08:00
|
|
|
# More here https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/options.py
|
2022-03-18 04:09:03 +08:00
|
|
|
YTDL_OPTS = {
|
2022-10-15 23:27:27 +08:00
|
|
|
'outtmpl': os.path.join(settings.TMP_DOWNLOAD_PATH, '%(title).200B.%(ext)s'),
|
2022-03-18 04:09:03 +08:00
|
|
|
'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4',
|
|
|
|
'noplaylist': True,
|
2022-11-14 03:03:52 +08:00
|
|
|
'playlist_items': '1:1',
|
2022-10-14 03:55:18 +08:00
|
|
|
'concurrent_fragment_downloads': 5,
|
2022-03-18 04:09:03 +08:00
|
|
|
}
|