actor Module

A module for actor related functionality.

class pytvdbapi.actor.Actor(mirror, data, show)

Representing an Actor as provided by thetvdb.com. It Will contain all attributes as delivered from thetvdb.com, the attributes are described in more detail here.

Example:

>>> from pytvdbapi import api
>>> db = api.TVDB("B43FF87DE395DF56")
>>> result = db.search("dexter", "en")
>>> show = result[0]

>>> show.load_actors()

>>> actor = show.actor_objects[0]
>>> print(actor.image_url)
http://thetvdb.com/banners/actors/70947.jpg

>>> for actor in show.actor_objects: 
...     print(u"{0} - {1}".format(actor.Name, actor.Role))
...
Michael C. Hall - Dexter Morgan
Jennifer Carpenter - Debra Morgan
James Remar - Harry Morgan
...
Jimmy Smits - Miguel Prado
Jaime Murray - Lila Tournay
John Lithgow - Arthur Mitchell
...

Additional class attributes are:

pytvdbapi.actor.Actor.image_url

The full URL for the actor image.