flexget.plugins.metainfo.rottentomatoes_lookup module#

class flexget.plugins.metainfo.rottentomatoes_lookup.PluginRottenTomatoesLookup[source]#

Bases: object

Retrieves Rotten Tomatoes information for entries.

Example::

rottentomatoes_lookup: yes

lazy_loader(entry)[source]#

Do the lookup for this entry and populate the entry fields.

Parameters:

entry – entry to perform lookup on

Returns:

the field value

lookup(entry, search_allowed=True, key=None)[source]#

Perform Rotten Tomatoes lookup for entry.

Parameters:
  • entry – Entry instance

  • search_allowed – Allow fallback to search

  • key – optionally specify an API key to use

Raises:

PluginError – Failure reason

on_task_metainfo(task, config)[source]#
field_map = {'movie_name': 'title', 'movie_year': 'year', 'rt_actors': <function PluginRottenTomatoesLookup.<lambda>>, 'rt_alternate_ids': <function PluginRottenTomatoesLookup.<lambda>>, 'rt_audience_rating': 'audience_rating', 'rt_audience_score': 'audience_score', 'rt_average_score': <function PluginRottenTomatoesLookup.<lambda>>, 'rt_critics_consensus': 'critics_consensus', 'rt_critics_rating': 'critics_rating', 'rt_critics_score': 'critics_score', 'rt_directors': <function PluginRottenTomatoesLookup.<lambda>>, 'rt_genres': <function PluginRottenTomatoesLookup.<lambda>>, 'rt_id': 'id', 'rt_mpaa_rating': 'mpaa_rating', 'rt_name': 'title', 'rt_posters': <function PluginRottenTomatoesLookup.<lambda>>, 'rt_releases': <function PluginRottenTomatoesLookup.<lambda>>, 'rt_runtime': 'runtime', 'rt_studio': 'studio', 'rt_synopsis': 'synopsis', 'rt_url': <function get_rt_url>, 'rt_year': 'year'}#
property movie_identifier#

Returns the plugin main identifier type.

schema = {'oneOf': [{'type': 'boolean'}, {'description': 'provide a custom api key', 'type': 'string'}]}#
flexget.plugins.metainfo.rottentomatoes_lookup.get_rt_url(movie)[source]#
flexget.plugins.metainfo.rottentomatoes_lookup.register_plugin()[source]#