Fix --break-per-url --max-downloads

This commit is contained in:
pukkandan 2022-08-24 08:00:13 +05:30
parent fe7866d0ed
commit fd404bec7e
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
3 changed files with 4 additions and 3 deletions

View File

@ -530,8 +530,8 @@ ## Video Selection:
a file that is in the archive
--break-on-reject Stop the download process when encountering
a file that has been filtered out
--break-per-input Make --break-on-existing, --break-on-reject
and --max-downloads act only on the current
--break-per-input Make --break-on-existing, --break-on-reject,
--max-downloads and autonumber reset per
input URL
--no-break-per-input --break-on-existing and similar options
terminates the entire download queue

View File

@ -3265,6 +3265,7 @@ def wrapper(*args, **kwargs):
self.to_screen(f'[info] {e}')
if not self.params.get('break_per_url'):
raise
self._num_downloads = 0
else:
if self.params.get('dump_single_json', False):
self.post_extract(res)

View File

@ -632,7 +632,7 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
selection.add_option(
'--break-per-input',
action='store_true', dest='break_per_url', default=False,
help='Make --break-on-existing, --break-on-reject and --max-downloads act only on the current input URL')
help='Make --break-on-existing, --break-on-reject, --max-downloads and autonumber reset per input URL')
selection.add_option(
'--no-break-per-input',
action='store_false', dest='break_per_url',