Class e.p.t.m.MovieModel(Model):

Part of elisa.plugins.themoviedb.models View In Hierarchy

No class docstring
Line # Kind Name Docs
35 Method __init__ A MovieModel represents a search result on themoviedb.org or a
130 Method api_url A little helper giving the API url call to use to retrieve
144 Method imdb_url A little helper giving the API url call to use to retrieve

Inherited from Bindable (via Model):

Line # Kind Name Docs
34 Method bind Bind a local attribute to destination_attribute of
73 Method unbind Remove the binding of attribute to destination_attribute of
104 Method unbind_object Remove all the bindings you have for a certain destination_object.
118 Method __setattr__ Undocumented
136 Method __delattr__ Undocumented
def __init__(self):
A MovieModel represents a search result on themoviedb.org or a
detailled set of informations as reported per the getInfo API
call. All fields are usually non-empty excepted these
optional ones:

- runtime
- budget
- revenue
- homepage
- trailers
- production_countries
- people
- categories

@ivar score: movie relevance compared to the search term on the API.
             Will be 1.0 if getInfo was called (perfect match)
@type score: C{float}
@ivar popularity: popularity on website (?) (we assume between
                  0 and 100 undocumented in online API docs)
@type popularity: C{int}
@ivar rating: user rating (between 0 and 10)
@type rating: C{float}
@ivar title: movie main title
@type title: C{unicode}
@ivar alternative_title: movie alternate title
@type alternative_title: C{unicode}
@ivar id: movie id in themoviedb database
@type id: C{int}
@ivar imdbid: IMDB.com ID for the movie
@type imdbid: C{unicode}
@ivar url: themoviedb.org url of the movie
@type url: L{elisa.core.media_uri.MediaUri}
@ivar short_overview: overview of the movie
@type short_overview: C{unicode}
@ivar release_date: official date of the movie release
@type release_date: L{datetime.date}
@ivar posters: movie posters, sorted by size. Possible sizes
               are: original, mid, thummb, cover
@type posters: C{dict}. Keys: sizes (C{unicode}),
               values: urls (L{elisa.core.media_uri.MediaUri})
@ivar backdrops: movie backdrops, sorted by size. Possible sizes
                 are original, mid, thumb
@type backdrops: C{dict}. Keys: sizes (C{unicode}),
                 values: urls (L{elisa.core.media_uri.MediaUri})
@ivar runtime: movie duration, in minutes
@type runtime: C{int}
@ivar budget: movie budget, in $ ?
@type budget: C{int}
@ivar revenue: movie revenue, in $ ?
@type revenue: C{int}
@ivar homepage: official website
@type homepage: L{elisa.core.media_uri.MediaUri}
@ivar trailers: movie trailers sorted by source ("youtube" is
                currently the only supported source).
@type trailers: C{dict}. Keys sources (C{unicode}),
                values: urls (L{elisa.core.media_uri.MediaUri})
@ivar production_countries: countries where the movie was made (?)
@type production_countries: C{list} of tuples(name: C{unicode},
                            short_name: C{unicode},
                            url: L{elisa.core.media_uri.MediaUri})
@ivar people: people involved in the movie, sorted by job
@type people: C{dict}. Keys job (C{unicode}),
              values: tuples(name: C{unicode}, role: C{unicode},
                             url: L{elisa.core.media_uri.MediaUri})
@ivar categories: user-supplied tags
@type categories: C{dict}. Keys: name (C{unicode}),
                  values: moviedb_url (L{elisa.core.media_uri.MediaUri})
@property
def api_url(self):
A little helper giving the API url call to use to retrieve extended informations about the movie.
Returnsthe getInfo URL that can be used in a get() call of the resource_provider. (type: elisa.core.media_uri.MediaUri )
@property
def imdb_url(self):
A little helper giving the API url call to use to retrieve informations about the movie on imdb.com.
Returnsthe imdbLookup URL that can be used in a get() call of the resource_provider. (type: elisa.core.media_uri.MediaUri )
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.