Add experimental option --check-formats to test the URLs before format selection

This commit is contained in:
pukkandan
2021-05-04 21:24:00 +05:30
parent e625be0d10
commit e8e738406a
5 changed files with 76 additions and 31 deletions

View File

@@ -502,6 +502,10 @@ def parseOpts(overrideArguments=None):
'--no-prefer-free-formats',
action='store_true', dest='prefer_free_formats', default=False,
help="Don't give any special preference to free containers (default)")
video_format.add_option(
'--check-formats',
action='store_true', dest='check_formats', default=False,
help="Check that the formats selected are actually downloadable (Experimental)")
video_format.add_option(
'-F', '--list-formats',
action='store_true', dest='listformats',