Helper
class for saving anime shows.
Constructor Summary
Public Constructor | ||
public |
constructor(name: String, debug: Boolean) Create an helper object for anime content. |
Member Summary
Public Members | ||
public |
The name of the torrent provider. |
Private Members | ||
private |
_hummingbird: HummingbirdAPI A configured HummingBird API. |
|
private |
The util object with general functions. |
Method Summary
Public Methods | ||
public |
addEpisodes(anime: Show, episodes: Object, slug: String): Anime Adds episodes to a anime. |
|
public |
getHummingbirdInfo(slug: String): Anime Get info from Hummingbird and make a new anime object. |
Private Methods | ||
private |
_addSeason(anime: Anime, episodes: Object, seasonNumber: Integer, slug: String): * Adds one season to a anime. |
|
private |
Update the torrents for an existing anime. |
|
private |
_updateEpisodes(anime: Anime): Anime Update a given anime with it's associated episodes. |
|
private |
_updateNumSeasons(anime: Anime): Anime Update the number of seasons of a given anime. |
Public Constructors
Public Members
Private Members
Public Methods
public addEpisodes(anime: Show, episodes: Object, slug: String): Anime source
Adds episodes to a anime.
public getHummingbirdInfo(slug: String): Anime source
Get info from Hummingbird and make a new anime object.
Params:
Name | Type | Attribute | Description |
slug | String | The slug to query https://hummingbird.me/. |
Private Methods
private _addSeason(anime: Anime, episodes: Object, seasonNumber: Integer, slug: String): * source
Adds one season to a anime.
Return:
* |
private _updateEpisode(matching: Object, found: Object, anime: Anime, quality: String): Anime source
Update the torrents for an existing anime.