flexget.plugins.input.mock module#

Plugin for mocking task data.

class flexget.plugins.input.mock.Mock[source]#

Bases: object

Allows adding mock input entries.

Example:

mock:
  - {title: foobar, url: http://some.com }
  - {title: mock, url: http://another.com }
  - Title Only

If url is not given a random url pointing to localhost will be generated.

on_task_input(task, config)[source]#
schema = {'items': {'oneOf': [{'type': 'string'}, {'properties': {'title': {'type': 'string'}, 'url': {'type': 'string'}}, 'required': ['title'], 'type': 'object'}]}, 'type': 'array'}#
flexget.plugins.input.mock.register_plugin()[source]#