Helper
Class for saving shows.
Constructor Summary
| Public Constructor | ||
| public |
constructor(name: String) Create an helper object for show 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 |
addEpisodes(show: Show, episodes: Object, slug: String): Show Adds episodes to a show. |
|
| public |
getTraktInfo(slug: String): Show Get info from Trakt and make a new show object. |
|
| Private Methods | ||
| private |
_addDateBasedSeason(show: Show, episodes: Object, seasonNumber: Integer, slug: String): * Adds one datebased season to a show. |
|
| private |
_addSeasonalSeason(show: Show, episodes: Object, seasonNumber: Integer, slug: String): * Adds one seasonal season to a show. |
|
| private |
_getImages(tmdb_id: Integer, tvdb_id: Integer): Object Get images from Fanart.tv on thetvdb.com. |
|
| private |
Update the torrents for an existing show. |
|
| private |
_updateEpisodes(show: Show): Show Update a given show with it's associated episodes. |
|
| private |
_updateNumSeasons(show: Show): Show Update the number of seasons of a given show. |
|
Public Constructors
Public Members
Private Members
Public Methods
public addEpisodes(show: Show, episodes: Object, slug: String): Show source
Adds episodes to a show.
public getTraktInfo(slug: String): Show source
Get info from Trakt and make a new show object.
Params:
| Name | Type | Attribute | Description |
| slug | String | The slug to query https://trakt.tv/. |
Private Methods
private _addDateBasedSeason(show: Show, episodes: Object, seasonNumber: Integer, slug: String): * source
Adds one datebased season to a show.
Return:
| * |
private _addSeasonalSeason(show: Show, episodes: Object, seasonNumber: Integer, slug: String): * source
Adds one seasonal season to a show.
Return:
| * |
private _getImages(tmdb_id: Integer, tvdb_id: Integer): Object source
Get images from Fanart.tv on thetvdb.com.
Params:
| Name | Type | Attribute | Description |
| tmdb_id | Integer | The tmdb id of the how you want the images from. |
|
| tvdb_id | Integer | The tvdb id of the show you want the images from. |
private _updateEpisode(matching: Object, found: Object, show: Show, quality: String): Show source
Update the torrents for an existing show.