]> jfr.im git - yt-dlp.git/commitdiff
Fix `--break-per-url --max-downloads`
authorpukkandan <redacted>
Wed, 24 Aug 2022 02:30:13 +0000 (08:00 +0530)
committerpukkandan <redacted>
Wed, 24 Aug 2022 02:30:13 +0000 (08:00 +0530)
README.md
yt_dlp/YoutubeDL.py
yt_dlp/options.py

index aab20c079f65d2d379c1d6c235615a99a36e15f8..e49190ab2ccc995a4f58c1f48f75fb0c4eb829f5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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
index a3d5620425ee62df6430f483b2d669f0f8695142..e1bbb01fa21c7014ebf0e2bc903196b455c367e1 100644 (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)
index bee531d1b518cd19e117862e0a0d39b704a3269c..5e15812963297b8c99ad580cc27310ab4ac21118 100644 (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',