[DOCS] Clean up match-filter plugin docs

This commit is contained in:
Jesse Bannon 2023-06-17 13:23:51 -07:00
parent a993beff0e
commit f68ba975b6

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]