Support loading info.json with a list at it's root

This commit is contained in:
pukkandan
2023-03-10 14:15:13 +05:30
parent 871c907454
commit ab1de9cb1e
2 changed files with 14 additions and 11 deletions
+2
View File
@@ -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)