Helper
Class for saving shows.
Constructor Summary
| Public Constructor | ||
| public |
constructor(name: String) Create an helper object. |
|
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 |
_addSeason(show: Show, episodes: Object, seasonNumber: Integer, slug: String): Show Adds one season to a show. |
|
| 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 _addSeason(show: Show, episodes: Object, seasonNumber: Integer, slug: String): Show source
Adds one season to a show.
private _updateEpisode(matching: Object, found: Object, show: Show, quality: String): Show source
Update the torrents for an existing show.