A feature-rich command-line audio/video downloader
Fix `--break-per-url --max-downloads`
pukkandanfd404bec7e63
diff --git a/README.md b/README.mdindex aab20c079f..e49190ab2c 100644--- a/README.md+++ b/README.md@@ -530,8 +530,8 @@ You can also fork the project on github and run your fork's [build workflow](.gia file that is in the archive--break-on-reject Stop the download process when encounteringa 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 perinput URL--no-break-per-input --break-on-existing and similar optionsterminates the entire download queuediff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex a3d5620425..e1bbb01fa2 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -3265,6 +3265,7 @@ class YoutubeDL:self.to_screen(f'[info] {e}')if not self.params.get('break_per_url'):raise+ self._num_downloads = 0else:if self.params.get('dump_single_json', False):self.post_extract(res)diff --git a/yt_dlp/options.py b/yt_dlp/options.pyindex bee531d1b5..5e15812963 100644--- a/yt_dlp/options.py+++ b/yt_dlp/options.py@@ -632,7 +632,7 @@ def create_parser():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',