flexget.components.tvmaze.api_tvmaze module#

class flexget.components.tvmaze.api_tvmaze.APITVMaze[source]#

Bases: object

static episode_lookup(*args, **kwargs)#
static season_lookup(*args, **kwargs)#
static series_lookup(*args, **kwargs)#
class flexget.components.tvmaze.api_tvmaze.TVMazeEpisodes(episode, series_id)[source]#

Bases: VersionedBase

to_dict()[source]#
update(episode)[source]#
_sa_class_manager = {'airdate': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'airstamp': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'last_update': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'medium_image': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'number': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'original_image': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'runtime': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'season_number': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'series_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'summary': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'title': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tvmaze_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'url': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
airdate#
airstamp#
property expired#
last_update#
medium_image#
number#
original_image#
runtime#
season_number#
series_id#
summary#
title#
tvmaze_id#
url#
class flexget.components.tvmaze.api_tvmaze.TVMazeGenre(**kwargs)[source]#

Bases: VersionedBase

_sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
id#
name#
class flexget.components.tvmaze.api_tvmaze.TVMazeLookup(search_name, series_id=None, series=None)[source]#

Bases: VersionedBase

_sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'search_name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'series': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'series_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
id#
search_name#
series#
series_id#
class flexget.components.tvmaze.api_tvmaze.TVMazeSeason(season, series_id)[source]#

Bases: VersionedBase

update(season)[source]#
_sa_class_manager = {'airdate': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'end_date': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'episode_order': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'image': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'network': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'number': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'series_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'summary': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tvmaze_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'url': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'web_channel': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
airdate#
end_date#
episode_order#
image#
name#
network#
number#
series_id#
summary#
tvmaze_id#
url#
web_channel#
class flexget.components.tvmaze.api_tvmaze.TVMazeSeries(series, session)[source]#

Bases: VersionedBase

populate_seasons(series=None)[source]#
to_dict()[source]#
update(series, session)[source]#
_sa_class_manager = {'_schedule': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'episodes': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'genres': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'language': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'last_update': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'medium_image': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'network': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'original_image': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'premiered': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'rating': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'runtime': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'schedule': <sqlalchemy.orm.attributes.create_proxied_attribute.<locals>.Proxy object>, 'seasons': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'show_type': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'status': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'summary': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tvdb_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tvmaze_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tvrage_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'updated': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'url': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'webchannel': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'weight': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'year': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
_schedule#
episodes#
property expired#
genres#
language#
last_update#
medium_image#
name#
network#
original_image#
premiered#
rating#
runtime#
schedule#
seasons#
show_type#
status#
summary#
tvdb_id#
tvmaze_id#
tvrage_id#
updated#
url#
webchannel#
weight#
year#
flexget.components.tvmaze.api_tvmaze.get_db_genres(genres, session)[source]#
flexget.components.tvmaze.api_tvmaze.get_episode(series_id, date=None, number=None, season=None)[source]#
flexget.components.tvmaze.api_tvmaze.get_seasons(series_id)[source]#
flexget.components.tvmaze.api_tvmaze.get_show(show_name=None, tvmaze_id=None, imdb_id=None, tvrage_id=None, thetvdb_id=None)[source]#
flexget.components.tvmaze.api_tvmaze.prepare_lookup_for_tvmaze(**lookup_params)[source]#

Return a dict of params which is valid with tvmaze API lookups.

Parameters:

lookup_params – Search parameters

Returns:

Dict of tvmaze recognizable key words

flexget.components.tvmaze.api_tvmaze.register_plugin()[source]#
flexget.components.tvmaze.api_tvmaze.search_params_for_series(**lookup_params)[source]#
flexget.components.tvmaze.api_tvmaze.tvmaze_lookup(lookup_url, **kwargs)[source]#

Build the URL and return the reply from TVMaze API.

Parameters:
  • lookup_type – Selects the endpoint that will be used

  • lookup_values – A list of values to be used in the URL

Returns:

A JSON reply from the API