flexget.plugins.filter.crossmatch module#

class flexget.plugins.filter.crossmatch.CrossMatch[source]#

Bases: object

Perform 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:
on_task_filter(task, config)[source]#
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'}#
flexget.plugins.filter.crossmatch.register_plugin()[source]#