flexget.components.seen.api module#

class flexget.components.seen.api.ObjectsContainer[source]#

Bases: object

seen_field_object = {'properties': {'added': {'format': 'date-time', 'type': 'string'}, 'field': {'type': 'string'}, 'id': {'type': 'integer'}, 'seen_entry_id': {'type': 'integer'}, 'value': {'type': 'string'}}, 'type': 'object'}#
seen_object = {'properties': {'added': {'format': 'date-time', 'type': 'string'}, 'fields': {'items': {'properties': {'added': {'format': 'date-time', 'type': 'string'}, 'field': {'type': 'string'}, 'id': {'type': 'integer'}, 'seen_entry_id': {'type': 'integer'}, 'value': {'type': 'string'}}, 'type': 'object'}, 'type': 'array'}, 'id': {'type': 'integer'}, 'local': {'type': 'boolean'}, 'reason': {'type': 'string'}, 'task': {'type': 'string'}, 'title': {'type': 'string'}}, 'type': 'object'}#
seen_search_object = {'items': {'properties': {'added': {'format': 'date-time', 'type': 'string'}, 'fields': {'items': {'properties': {'added': {'format': 'date-time', 'type': 'string'}, 'field': {'type': 'string'}, 'id': {'type': 'integer'}, 'seen_entry_id': {'type': 'integer'}, 'value': {'type': 'string'}}, 'type': 'object'}, 'type': 'array'}, 'id': {'type': 'integer'}, 'local': {'type': 'boolean'}, 'reason': {'type': 'string'}, 'task': {'type': 'string'}, 'title': {'type': 'string'}}, 'type': 'object'}, 'type': 'array'}#
class flexget.components.seen.api.SeenSearchAPI(api, *args, **kwargs)[source]#

Bases: APIResource

Parameters:

api (RestxAPI)

delete(session)[source]#

Delete seen entries.

get(session)[source]#

Search for seen entries.

mediatypes()#
endpoint = 'seen_seen_search_api'#
methods: ClassVar[Collection[str] | None] = {'DELETE', 'GET'}#

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

class flexget.components.seen.api.SeenSearchIDAPI(api, *args, **kwargs)[source]#

Bases: APIResource

Parameters:

api (RestxAPI)

delete(seen_entry_id, session)[source]#

Delete seen entry by ID.

get(seen_entry_id, session)[source]#

Get seen entry by ID.

mediatypes()#
endpoint = 'seen_seen_search_idapi'#
methods: ClassVar[Collection[str] | None] = {'DELETE', 'GET'}#

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.