flexget.plugins.modify.sort_by module#

class flexget.plugins.modify.sort_by.PluginSortBy[source]#

Bases: object

Sort task entries based on a field.

Example:

sort_by: title

More complex:

sort_by:
  field: imdb_score
  reverse: yes

Reverse the order of the entries, without sorting on a field:

sort_by:
  reverse: yes
on_task_filter(task, config)[source]#
schema = {'oneOf': [{'items': {'oneOf': [{'type': 'string'}, {'additionalProperties': False, 'properties': {'field': {'type': 'string'}, 'ignore_articles': {'oneOf': [{'type': 'boolean'}, {'format': 'regex', 'type': 'string'}]}, 'reverse': {'type': 'boolean'}}, 'type': 'object'}], 'title': 'single value'}, 'minItems': 1, 'title': 'multiple values', 'type': 'array', 'uniqueItems': False}, {'oneOf': [{'type': 'string'}, {'additionalProperties': False, 'properties': {'field': {'type': 'string'}, 'ignore_articles': {'oneOf': [{'type': 'boolean'}, {'format': 'regex', 'type': 'string'}]}, 'reverse': {'type': 'boolean'}}, 'type': 'object'}], 'title': 'single value'}]}#
flexget.plugins.modify.sort_by.register_plugin()[source]#