Part of elisa.plugins.themoviedb.resource_provider View In Hierarchy
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 52 | Method | initialize | Initialize the component. |
| 57 | Method | clean | Close all the open HTTP connections. |
| 70 | Method | get | Link to API docs: http://api.themoviedb.org/2.0/docs |
| 145 | Method | _fill_movie_model | Undocumented |
| 256 | Method | _response_read | Undocumented |
| 288 | Method | _request_done | Undocumented |
Inherited from ResourceProvider:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 103 | Method | post | Update the resource pointed by uri with
parameters. |
| 116 | Method | put | Put one resource into another. Both resources are identified with URIs. |
| 138 | Method | delete | Delete a Resource represented by a URI. |
Inherited from Component (via ResourceProvider):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 85 | Class | PathDescriptor | Undocumented |
| 97 | Class Method | create | Create and initialize the component. |
Inherited from Loggable (via ResourceProvider, Component):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 81 | Method | __init__ | Undocumented |
This method is called by Component.create to finish the
initialization of a component.
| Returns | a deferred called when a component is fully initialized
(type: twisted.internet.defer.Deferred
) | |
Link to API docs: http://api.themoviedb.org/2.0/docs
3 API calls currently supported:
- Movie.search: will fill a
L{elisa.plugins.themoviedb.models.MoviesListModel}
containing L{elisa.plugins.themoviedb.models.MovieModel}
instance, partially filled in.
- Movie.getInfo: will complete a
L{elisa.plugins.themoviedb.models.MovieModel} instance
passed as context_model (required for this call). The uri to
request can be retrieved with the api_url property of the
MovieModel (or read the API docs).
- Movie.imdbLookup: will fill or complete a
L{elisa.plugins.themoviedb.models.MovieModel} instance
passed as context_model. The uri to
request can be retrieved with the imdb_url property of the
MovieModel (or read the API docs).
Movie posters hosted on themoviedb.org can also be retrieved
and stored to L{elisa.plugins.base.models.media.RawDataModel}
instances. Images are in jpeg format.
@param uri: URI pointing to the resource
@type uri: L{elisa.core.media_uri.MediaUri}
@param context_model: optional movie model instance to fill (if uri
is a getInfo call)
@type context_model: L{elisa.plugins.themoviedb.models.MovieModel} or
C{None}
@return: a new model and a deferred fired when the model
is filled with the requested resource's data
@rtype: tuple of L{elisa.core.components.model.Model}
L{elisa.core.utils.defer.Deferred}