flexget.components.managed_lists.lists.radarr_list module#

exception flexget.components.managed_lists.lists.radarr_list.RadarrMovieAlreadyExistsError[source]#

Bases: Exception

exception flexget.components.managed_lists.lists.radarr_list.RadarrRequestError(value, logger=<loguru.logger handlers=[(id=0, level=10, sink=<stderr>)]>, **kwargs)[source]#

Bases: Exception

class flexget.components.managed_lists.lists.radarr_list.RadarrAPIService(api_key, base_url, port=None)[source]#

Bases: object

Handles all communication with the Radarr REST API.

_default_headers()[source]#

Return a dictionary with default headers.

add_movie(title, year, quality_profile_id, title_slug, images, tmdb_id, root_folder_path, monitored=True, add_options=None, tags=())[source]#

Add a movie.

add_tag(label)[source]#

Add a tag.

delete_movie(movie_id)[source]#

Delete a movie provided by its id.

get_movies()[source]#

Get all movies.

get_profiles()[source]#

Get all profiles.

get_root_folders()[source]#

Get the root folders.

get_tags()[source]#

Get all tags.

lookup_by_imdb(imdb_id)[source]#

Return all movies that matches the imdb id.

lookup_by_term(term)[source]#

Return all movies that matches the search term.

lookup_by_tmdb(tmdb_id)[source]#

Return all movies that matches the tmdb id.

class flexget.components.managed_lists.lists.radarr_list.RadarrList[source]#

Bases: object

List plugin for Radarr that also works as an input plugin.

static get_list(config)[source]#
on_task_input(task, config)[source]#
schema = {'additionalProperties': False, 'properties': {'api_key': {'type': 'string'}, 'base_url': {'type': 'string'}, 'include_data': {'default': False, 'type': 'boolean'}, 'monitored': {'default': True, 'type': 'boolean'}, 'only_monitored': {'default': True, 'type': 'boolean'}, 'only_use_cutoff_quality': {'default': False, 'type': 'boolean'}, 'port': {'default': 80, 'type': 'number'}, 'profile_id': {'default': 1, 'type': 'integer'}, 'tags': {'items': {'type': ['integer', 'string']}, 'type': 'array'}}, 'required': ['api_key', 'base_url'], 'type': 'object'}#
class flexget.components.managed_lists.lists.radarr_list.RadarrSet(config)[source]#

Bases: MutableSet

Accesses the Radarr movies using the provided the config.

_find_matching_entry(entry)[source]#

Find a movie by first checking against the ids of the provided entry, and if none matches, check by title name.

Return type:

Entry | None

_from_iterable(it)[source]#

Construct an instance of the class from any iterable input.

Must override this method if the class constructor signature does not accept an iterable for an input.

_get_movie_entries()[source]#

Return a collection of Entry instances that represents the entries in the Radarr movie list.

Return type:

list[Entry]

_lookup_movie(title=None, imdb_id=None, tmdb_id=None)[source]#

Use Radarr’s API to lookup a movie, prioritizing IMDB/TMDB ids and as a last resort search for the title.

add(entry)[source]#

Add an element.

discard(entry)[source]#

Remove an element. Do not raise an exception if absent.

get(entry)[source]#
get_tag_ids(entry)[source]#
_abc_impl = <_abc._abc_data object>#
property immutable#
property items#

Returns all items and only loads them all items when needed.

property online#
property tags#

Returns tag by id.

flexget.components.managed_lists.lists.radarr_list.get_flexget_qualities(profile, cutoff_only=False)[source]#
flexget.components.managed_lists.lists.radarr_list.radarr_quality_to_flexget_quality_req(radarr_quality)[source]#

Translate the provided Radarr quality string to a Flexget Requirement instance.

Return None if translation is unsuccessful

flexget.components.managed_lists.lists.radarr_list.register_plugin()[source]#
flexget.components.managed_lists.lists.radarr_list.request_delete_json(url, headers)[source]#

Make a DELETE request and return the JSON response.

flexget.components.managed_lists.lists.radarr_list.request_get_json(url, headers)[source]#

Make a GET request and return the JSON response.

flexget.components.managed_lists.lists.radarr_list.request_post_json(url, headers, data)[source]#

Make a POST request and return the JSON response.

flexget.components.managed_lists.lists.radarr_list.request_put_json(url, headers)[source]#

Make a PUT request and return the JSON response.

flexget.components.managed_lists.lists.radarr_list.spec_exception_from_response_ex(radarr_request_ex)[source]#