diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-16 23:35:43 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-17 00:07:44 +0530 |
commit | 490110c543828b1cc9f83b3c3bbfb1bb2118b055 (patch) | |
tree | 21cd1a20107a675a9ea57de2b3b775ba907bc146 | |
parent | 241464919271278831f23b3a086dcf57aeb80d3b (diff) | |
download | hypervideo-pre-490110c543828b1cc9f83b3c3bbfb1bb2118b055.tar.lz hypervideo-pre-490110c543828b1cc9f83b3c3bbfb1bb2118b055.tar.xz hypervideo-pre-490110c543828b1cc9f83b3c3bbfb1bb2118b055.zip |
`--max-downloads` should obey `--break-per-input`
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 | ||||
-rw-r--r-- | yt_dlp/options.py | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 1c7540bcd..31af51195 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3234,9 +3234,6 @@ class YoutubeDL: res = func(*args, **kwargs) except UnavailableVideoError as e: self.report_error(e) - except MaxDownloadsReached as e: - self.to_screen(f'[info] {e}') - raise except DownloadCancelled as e: self.to_screen(f'[info] {e}') if not self.params.get('break_per_url'): diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 8a9195217..2e8d384c0 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -511,11 +511,11 @@ def create_parser(): selection.add_option( '--break-per-input', 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( '--no-break-per-input', 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( '--skip-playlist-after-errors', metavar='N', dest='skip_playlist_after_errors', default=None, type=int, |