Media
¶
-
class
trakt.objects.media.
Media
(client, keys=None, index=None)¶ Bases:
object
-
get_key
(service)¶
-
images
= None¶ Type: dict
Images (or None), defined as:
{ <type>: { <size>: <url> } }
Type Size Dimensions banner
full
1000x185 (movie/show), 758x140 (show) clearart
full
1000x562 fanart
full
1920x1080 (typical), 1280x720 medium
1280x720 thumb
853x480 logo
full
800x310 poster
full
1000x1500 medium
600x900 thumb
300x450 thumb
full
1000x562 (movie), 500x281 (show)
-
keys
= None¶ Type: list
oftuple
Keys (for imdb, tvdb, etc..), defined as:
..code-block:
[ (<service>, <id>) ]
-
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>)
orNone
if no primary key is availableReturn type: tuple
-