flexget.plugins.filter.crossmatch module#
- class flexget.plugins.filter.crossmatch.CrossMatch[source]#
Bases:
objectPerform action based on item on current task and other inputs.
Example:
crossmatch: from: - rss: http://example.com/ fields: - title action: reject exact: yes case_sensitive: yes
- entry_intersects(e1, e2, fields=None, exact=True, case_sensitive=True)[source]#
Return list of field names in common.
- Parameters:
e1 – First
flexget.entry.Entrye2 – Second
flexget.entry.Entryfields – List of fields which are checked
- schema = {'additionalProperties': False, 'properties': {'action': {'enum': ['accept', 'reject']}, 'all_fields': {'default': False, 'type': 'boolean'}, 'case_sensitive': {'default': True, 'type': 'boolean'}, 'exact': {'default': True, 'type': 'boolean'}, 'fields': {'items': {'type': 'string'}, 'type': 'array'}, 'from': {'items': {'$ref': '/schema/plugins?phase=input'}, 'type': 'array'}}, 'required': ['fields', 'action', 'from'], 'type': 'object'}#