Video

class trakt.objects.video.Video(client, keys=None, index=None)

Bases: trakt.objects.media.Media

action = None
Type:str

Item action (e.g. history action: “checkin”, “scrobble” or “watch”)

collected_at = None
Type:datetime

Timestamp of when this item was added to your collection (or None)

get_key(service)
id = None
Type:long

Item id (e.g. history id)

is_collected = None
Type:bool

Flag indicating this item has been collected (or None)

is_watched = None
Type:bool

Flag indicating this item has been watched (or None)

paused_at = None
Type:datetime

Timestamp of when this item was paused (or None)

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
progress = None
Type:float

Playback progress for item (or None)

watched_at = None
Type:datetime

Timestamp of when this item was watched (or None)