import Extractor from 'popcorn-api/src/providers/extractors/animeextractor.js'Constructor Summary
| Public Constructor | ||
| public |
constructor(name: String, contentProvider: Object, debug: Boolean) Create an extractor object for anime content. |
|
Member Summary
| Private Members | ||
| private |
The helper object for adding anime shows. |
|
| private |
The util object with general functions. |
|
Method Summary
| Public Methods | ||
| public |
Get all the animes. |
|
| public |
Returns a list of all the inserted torrents. |
|
| Private Methods | ||
| private |
_extractAnime(torrent: Object, regex: Regex): Object Extract anime information based on a regex. |
|
| private |
_getAllAnimes(torrents: Array): Array Puts all the found animes from the torrents in an array. |
|
| private |
_getAnimeData(torrent: Object): Object Get anime info from a given torrent. |
|
Inherited Summary
| From class BaseExtractor | ||
| public |
The name of the torrent provider. |
|
| private |
The content provider used by the extractor. |
|
| private |
The util object with general functions. |
|
| private |
_getAllTorrents(totalPages: Integer, provider: Object): Array Get all the torrents of a given provider. |
|
Public Constructors
public constructor(name: String, contentProvider: Object, debug: Boolean) source
Create an extractor object for anime content.
Override:
BaseExtractor#constructorPrivate Members
Public Methods
public getAnime(anime: Object): Anime source
Get all the animes.
Params:
| Name | Type | Attribute | Description |
| anime | Object | The anime information. |
public search(provider: Object): Anime[] source
Returns a list of all the inserted torrents.
Params:
| Name | Type | Attribute | Description |
| provider | Object | The provider to query the content provider. |
Private Methods
private _extractAnime(torrent: Object, regex: Regex): Object source
Extract anime information based on a regex.
Params:
| Name | Type | Attribute | Description |
| torrent | Object | The torrent to extract the anime information from. |
|
| regex | Regex | The regex to extract the anime information. |