[DOCS] Clean up match-filter plugin docs (#633)

This commit is contained in:
Jesse Bannon 2023-06-17 13:32:12 -07:00 committed by GitHub
parent a993beff0e
commit acc7bb306b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]