Helper
Class for saving movies.
Constructor Summary
| Public Constructor | ||
| public |
constructor(name: String) Create an helper object for movie content. |
|
Member Summary
| Public Members | ||
| public |
The name of the torrent provider. |
|
| Private Members | ||
| private |
The util object with general functions. |
|
Method Summary
| Public Methods | ||
| public |
addTorrents(movie: Movie, torrents: Object): Movie Adds torrents to a movie. |
|
| public |
getTraktInfo(slug: String): Movie Get info from Trakt and make a new movie object. |
|
| Private Methods | ||
| private |
_getImages(tmdb_id: Integer, imdb_id: String): Object Get images from themoviedb.org or omdbapi.com. |
|
| private |
_updateMovie(movie: Movie): Movie |
|
| private |
Update the torrents for an existing movie. |
|
Public Constructors
Public Members
Private Members
Public Methods
public getTraktInfo(slug: String): Movie source
Get info from Trakt and make a new movie object.
Params:
| Name | Type | Attribute | Description |
| slug | String | The slug to query trakt.tv. |
Private Methods
private _getImages(tmdb_id: Integer, imdb_id: String): Object source
Get images from themoviedb.org or omdbapi.com.
Params:
| Name | Type | Attribute | Description |
| tmdb_id | Integer | The tmdb id of the movie you want the images from. |
|
| imdb_id | String | The imdb id of the movie you want the images from. |
private _updateMovie(movie: Movie): Movie source
Params:
| Name | Type | Attribute | Description |
| movie | Movie | The movie to update its torrent. |