1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 13:54:25 -04:00

Add option --skip-playlist-after-errors

Allows to skip the rest of a playlist after a given number of errors are encountered
This commit is contained in:
pukkandan
2021-04-21 11:30:43 +05:30
parent 3b4775e021
commit 26e2805c3f
4 changed files with 17 additions and 0 deletions

View File

@@ -395,6 +395,10 @@ def parseOpts(overrideArguments=None):
'--break-on-reject',
action='store_true', dest='break_on_reject', default=False,
help='Stop the download process when encountering a file that has been filtered out')
selection.add_option(
'--skip-playlist-after-errors', metavar='N',
dest='skip_playlist_after_errors', default=None, type=int,
help='Number of allowed failures until the rest of the playlist is skipped')
selection.add_option(
'--no-download-archive',
dest='download_archive', action="store_const", const=None,