flexget.plugins.internal.api_rottentomatoes module#

class flexget.plugins.internal.api_rottentomatoes.ReleaseDate(name, date)[source]#

Bases: VersionedBase

_date#
_sa_class_manager = {'_date': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'date': <sqlalchemy.orm.attributes.create_proxied_attribute.<locals>.Proxy object>, 'db_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'movie_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
date#
db_id#
movie_id#
name#
class flexget.plugins.internal.api_rottentomatoes.RottenTomatoesActor(name, rt_id)[source]#

Bases: VersionedBase

_sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'rt_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
id#
name#
rt_id#
class flexget.plugins.internal.api_rottentomatoes.RottenTomatoesAlternateId(name, id)[source]#

Bases: VersionedBase

_sa_class_manager = {'db_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'movie_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
db_id#
id#
movie_id#
name#
class flexget.plugins.internal.api_rottentomatoes.RottenTomatoesContainer(init_dict=None)[source]#

Bases: object

Base class for RottenTomatoes objects.

Parameters:

init_dict (dict[str, Any] | None)

update_from_dict(update_dict)[source]#

Populate any simple (string or number) attributes from a dict.

Parameters:

update_dict (dict[str, Any])

Return type:

None

class flexget.plugins.internal.api_rottentomatoes.RottenTomatoesDirector(name)[source]#

Bases: VersionedBase

_sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
id#
name#
class flexget.plugins.internal.api_rottentomatoes.RottenTomatoesGenre(name)[source]#

Bases: VersionedBase

_sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
id#
name#

Bases: VersionedBase

_sa_class_manager = {'db_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'movie_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'url': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
db_id#
movie_id#
name#
url#
class flexget.plugins.internal.api_rottentomatoes.RottenTomatoesMovie(init_dict=None)[source]#

Bases: RottenTomatoesContainer, VersionedBase

_sa_class_manager = {'alternate_ids': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'audience_rating': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'audience_score': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'cast': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'critics_consensus': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'critics_rating': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'critics_score': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'directors': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'genres': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'links': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'mpaa_rating': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'posters': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'release_dates': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'runtime': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'studio': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'synopsis': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'title': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'updated': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'year': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
alternate_ids#
audience_rating#
audience_score#
cast#
critics_consensus#
critics_rating#
critics_score#
directors#
property expired: bool#
Returns:

True if movie details are considered to be expired, ie. need of update

genres#
id#
mpaa_rating#
posters#
release_dates#
runtime#
studio#
synopsis#
title#
updated#
year#
class flexget.plugins.internal.api_rottentomatoes.RottenTomatoesPoster(name, url)[source]#

Bases: VersionedBase

_sa_class_manager = {'db_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'movie_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'url': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
db_id#
movie_id#
name#
url#
class flexget.plugins.internal.api_rottentomatoes.RottenTomatoesSearchResult(**kwargs)[source]#

Bases: VersionedBase

_sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'movie': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'movie_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'search': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
id#
movie#
movie_id#
search#
flexget.plugins.internal.api_rottentomatoes._set_movie_details(movie, session, movie_data=None, api_key=None)[source]#

Populate movie object from given data.

Parameters:
  • movie (RottenTomatoesMovie) – movie object to update

  • session (Session) – session to use, returned Movie will be live in that session

  • api_key (str | None) – optionally specify an API key to use

  • movie_data (dict[str, Any] | None) – data to copy into the :movie:

Return type:

Any

flexget.plugins.internal.api_rottentomatoes.get_json(url)[source]#
Parameters:

url (str)

Return type:

dict[str, Any] | None

flexget.plugins.internal.api_rottentomatoes.lists(list_type, list_name, limit=20, page_limit=20, page=None, api_key=None)[source]#
Parameters:
  • limit (int)

  • page_limit (int)

  • page (int | None)

flexget.plugins.internal.api_rottentomatoes.movies_info(id, api_key=None)[source]#
Parameters:

api_key (str | None)

Parameters:
  • page_limit (int | None)

  • page (int | None)

  • api_key (str | None)