diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-08-24 08:00:13 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-08-24 08:00:13 +0530 |
commit | fd404bec7e6314c4584fedb1b595ee5e2d1225a6 (patch) | |
tree | e4634bbd92e06e4bd01e5e24c32d8bcd9a56b39d | |
parent | fe7866d0ed6bfa3904ce12b049a3424fdc0ea1fa (diff) | |
download | hypervideo-pre-fd404bec7e6314c4584fedb1b595ee5e2d1225a6.tar.lz hypervideo-pre-fd404bec7e6314c4584fedb1b595ee5e2d1225a6.tar.xz hypervideo-pre-fd404bec7e6314c4584fedb1b595ee5e2d1225a6.zip |
Fix `--break-per-url --max-downloads`
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | yt_dlp/YoutubeDL.py | 1 | ||||
-rw-r--r-- | yt_dlp/options.py | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -530,8 +530,8 @@ You can also fork the project on github and run your fork's [build workflow](.gi 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 diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index a3d562042..e1bbb01fa 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 = 0 else: if self.params.get('dump_single_json', False): self.post_extract(res) diff --git a/yt_dlp/options.py b/yt_dlp/options.py index bee531d1b..5e1581296 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', |