mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:01:28 +00:00
--max-downloads
should obey --break-per-input
This commit is contained in:
parent
2414649192
commit
490110c543
|
@ -3234,9 +3234,6 @@ def wrapper(*args, **kwargs):
|
||||||
res = func(*args, **kwargs)
|
res = func(*args, **kwargs)
|
||||||
except UnavailableVideoError as e:
|
except UnavailableVideoError as e:
|
||||||
self.report_error(e)
|
self.report_error(e)
|
||||||
except MaxDownloadsReached as e:
|
|
||||||
self.to_screen(f'[info] {e}')
|
|
||||||
raise
|
|
||||||
except DownloadCancelled as e:
|
except DownloadCancelled as e:
|
||||||
self.to_screen(f'[info] {e}')
|
self.to_screen(f'[info] {e}')
|
||||||
if not self.params.get('break_per_url'):
|
if not self.params.get('break_per_url'):
|
||||||
|
|
|
@ -511,11 +511,11 @@ def _dict_from_options_callback(
|
||||||
selection.add_option(
|
selection.add_option(
|
||||||
'--break-per-input',
|
'--break-per-input',
|
||||||
action='store_true', dest='break_per_url', default=False,
|
action='store_true', dest='break_per_url', default=False,
|
||||||
help='Make --break-on-existing and --break-on-reject act only on the current input URL')
|
help='Make --break-on-existing, --break-on-reject and --max-downloads act only on the current input URL')
|
||||||
selection.add_option(
|
selection.add_option(
|
||||||
'--no-break-per-input',
|
'--no-break-per-input',
|
||||||
action='store_false', dest='break_per_url',
|
action='store_false', dest='break_per_url',
|
||||||
help='--break-on-existing and --break-on-reject terminates the entire download queue')
|
help='--break-on-existing and similar options terminates the entire download queue')
|
||||||
selection.add_option(
|
selection.add_option(
|
||||||
'--skip-playlist-after-errors', metavar='N',
|
'--skip-playlist-after-errors', metavar='N',
|
||||||
dest='skip_playlist_after_errors', default=None, type=int,
|
dest='skip_playlist_after_errors', default=None, type=int,
|
||||||
|
|
Loading…
Reference in a new issue