update config file test
This commit is contained in:
parent
d2b1079cf4
commit
87ba2c46db
2 changed files with 1 additions and 14 deletions
|
|
@ -51,7 +51,6 @@ class UrlValidator(StrictDictValidator):
|
|||
"source_thumbnails",
|
||||
"playlist_thumbnails",
|
||||
"download_reverse",
|
||||
"extract_bilaterally",
|
||||
"ytdl_options",
|
||||
"include_sibling_metadata",
|
||||
}
|
||||
|
|
@ -83,9 +82,6 @@ class UrlValidator(StrictDictValidator):
|
|||
self._download_reverse = self._validate_key(
|
||||
key="download_reverse", validator=OverridesBooleanFormatterValidator, default="True"
|
||||
)
|
||||
self._extract_bilaterally = self._validate_key(
|
||||
key="extract_bilaterally", validator=OverridesBooleanFormatterValidator, default="False"
|
||||
)
|
||||
self._ytdl_options = self._validate_key(
|
||||
key="ytdl_options", validator=YTDLOptions, default={}
|
||||
)
|
||||
|
|
@ -165,15 +161,6 @@ class UrlValidator(StrictDictValidator):
|
|||
"""
|
||||
return self._download_reverse
|
||||
|
||||
@property
|
||||
def extract_bilaterally(self) -> OverridesBooleanFormatterValidator:
|
||||
"""
|
||||
Optional. If True, will extract metadata from both the beginning and end of the playlist.
|
||||
This is for incrementally fetching new entries that may be added at either the beginning
|
||||
or the end of a playlist. Defaults to False.
|
||||
"""
|
||||
return self._extract_bilaterally
|
||||
|
||||
@property
|
||||
def ytdl_options(self) -> YTDLOptions:
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class TestConfigFilePartiallyValidatesPresets:
|
|||
expected_error_message="Validation error in partial_preset.download.1: "
|
||||
"'partial_preset.download.1' contains the field 'bad_key' which is not allowed. "
|
||||
"Allowed fields: download_reverse, include_sibling_metadata, playlist_thumbnails, "
|
||||
"source_thumbnails, url, variables",
|
||||
"source_thumbnails, url, variables, ytdl_options",
|
||||
)
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
|
|||
Loading…
Reference in a new issue