flexget.components.archive.archive module#

class flexget.components.archive.archive.Archive[source]#

Bases: object

Archive all new items into database where they can be later searched and injected.

Stores the entries in the state as they are at the exit phase, this way task cleanup for title etc is stored into the database. This may however make injecting them back to the original task work wrongly.

on_task_abort(task, config)[source]#

Archive even on task abort, except if the abort has happened before session was started.

on_task_learn(task, config)[source]#

Add new entries into archive. We use learn phase in case the task corrects title or url via some plugins.

schema = {'oneOf': [{'type': 'boolean'}, {'items': {'type': 'string'}, 'type': 'array'}]}#
class flexget.components.archive.archive.UrlrewriteArchive[source]#

Bases: object

Provides capability to rewrite urls from archive or make searches with discover.

search(task, entry, config=None)[source]#

Search plugin API method.

entry_map = {'description': 'description', 'title': 'title', 'url': 'url'}#
schema = {'oneOf': [{'type': 'boolean'}, {'items': {'type': 'string'}, 'type': 'array'}]}#
flexget.components.archive.archive.register_plugin()[source]#