[DOCS] Clean up match-filter plugin docs (#633)
This commit is contained in:
parent
a993beff0e
commit
acc7bb306b
1 changed files with 8 additions and 3 deletions
|
|
@ -38,8 +38,12 @@ class MatchFiltersOptions(PluginOptions):
|
||||||
my_example_preset:
|
my_example_preset:
|
||||||
match_filters:
|
match_filters:
|
||||||
filters:
|
filters:
|
||||||
- "original_url!*=/shorts/"
|
- "age_limit<?18"
|
||||||
- "!is_live"
|
- "like_count>?100"
|
||||||
|
# Other common match-filters
|
||||||
|
# - "original_url!*=/shorts/ & !is_live"
|
||||||
|
# - "age_limit<?18"
|
||||||
|
# - "availability=?public"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_required_keys = {"filters"}
|
_required_keys = {"filters"}
|
||||||
|
|
@ -59,7 +63,8 @@ class MatchFiltersOptions(PluginOptions):
|
||||||
def filters(self) -> List[str]:
|
def filters(self) -> List[str]:
|
||||||
"""
|
"""
|
||||||
The filters themselves. If used multiple times, the filter matches if at least one of the
|
The filters themselves. If used multiple times, the filter matches if at least one of the
|
||||||
conditions are met.
|
conditions are met. For logical AND's between match filters, use the ``&`` operator in
|
||||||
|
a single match filter.
|
||||||
"""
|
"""
|
||||||
return [validator.value for validator in self._filters]
|
return [validator.value for validator in self._filters]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue