mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
Support loading info.json with a list at it's root
This commit is contained in:
parent
871c907454
commit
ab1de9cb1e
2 changed files with 14 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue