mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-26 04:00:46 +00:00
Support loading info.json with a list at it's root
This commit is contained in:
@@ -952,6 +952,8 @@ def _real_main(argv=None):
|
||||
parser.destroy()
|
||||
try:
|
||||
if opts.load_info_filename is not None:
|
||||
if all_urls:
|
||||
ydl.report_warning('URLs are ignored due to --load-info-json')
|
||||
return ydl.download_with_info_file(expand_path(opts.load_info_filename))
|
||||
else:
|
||||
return ydl.download(all_urls)
|
||||
|
||||
Reference in New Issue
Block a user