Update main.py
Browse files
main.py
CHANGED
@@ -242,12 +242,13 @@ async def download_video_max_quality(request: Request, payload: MaxDownloadReque
|
|
242 |
|
243 |
# --- yt-dlp Options for Video Download ---
|
244 |
ydl_opts = {
|
245 |
-
'format':
|
246 |
'outtmpl': str(file_path_stem.with_suffix('.%(ext)s')),
|
247 |
'merge_output_format': 'mp4', # Merge into MP4 container
|
248 |
'noplaylist': True,
|
249 |
-
'quiet':
|
250 |
-
'
|
|
|
251 |
}
|
252 |
if os.path.exists(COOKIE_FILE):
|
253 |
ydl_opts['cookiefile'] = COOKIE_FILE
|
|
|
242 |
|
243 |
# --- yt-dlp Options for Video Download ---
|
244 |
ydl_opts = {
|
245 |
+
'format': format_selector,
|
246 |
'outtmpl': str(file_path_stem.with_suffix('.%(ext)s')),
|
247 |
'merge_output_format': 'mp4', # Merge into MP4 container
|
248 |
'noplaylist': True,
|
249 |
+
'quiet': False,
|
250 |
+
'verbose': True,
|
251 |
+
'noprogress': False
|
252 |
}
|
253 |
if os.path.exists(COOKIE_FILE):
|
254 |
ydl_opts['cookiefile'] = COOKIE_FILE
|