Episode

class trakt.objects.episode.Episode(client, keys=None, index=None)

Bases: trakt.objects.video.Video

available_translations = None
Type:list

Available translations (for title, overview, etc..)

first_aired = None
Type:datetime

First air date

get_key(service)
number_abs = None
Type:int

Absolute episode number

pk

Retrieve the primary key (unique identifier for the item).

Provides the following identifiers (by media type):
  • movie: imdb
  • show: tvdb
  • season: tvdb
  • episode: tvdb
  • custom_list: trakt
  • person: tmdb
Returns:(<service>, <value>) or None if no primary key is available
Return type:tuple
runtime = None
Type:int

Runtime

season = None
Type:trakt.objects.season.Season

Season

show = None
Type:trakt.objects.show.Show

Show

title = None
Type:str

Title

to_dict()

Dump episode to a dictionary.

Returns:Episode dictionary
Return type:dict
to_identifier()

Retrieve the episode identifier.

Returns:Episode identifier/definition
Return type:dict
to_info()

Dump episode to a dictionary.

Deprecated: use the to_dict() method instead.

updated_at = None
Type:datetime

Updated date/time