import Extractor from 'popcorn-api/src/providers/extractors/movieextractor.js'
Constructor Summary
Public Constructor | ||
public |
constructor(name: String, contentProvider: Object, debug: Boolean) Create an extractor object for movie content. |
Member Summary
Private Members | ||
private |
The helper object for adding movies. |
|
private |
The util object with general functions. |
Method Summary
Public Methods | ||
public |
Returns a list of all the inserted torrents. |
Private Methods | ||
private |
_extractMovie(torrent: Object, language: String, regex: Regex): Object Extract movie information based on a regex. |
|
private |
_getAllMovies(torrents: Array, language: String): Array Puts all the found movies from the torrents in an array. |
|
private |
Get all the movies. |
|
private |
_getMovieData(torrent: Object, language: String): Object Get movie 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 movie content.
Override:
BaseExtractor#constructorPrivate Members
Public Methods
public search(provider: Object): Movie[] source
Returns a list of all the inserted torrents.
Params:
Name | Type | Attribute | Description |
provider | Object | The provider to query content provider. |
Private Methods
private _extractMovie(torrent: Object, language: String, regex: Regex): Object source
Extract movie information based on a regex.
private _getAllMovies(torrents: Array, language: String): Array source
Puts all the found movies from the torrents in an array.
private _getMovie(movie: Object): Movie source
Get all the movies.
Params:
Name | Type | Attribute | Description |
movie | Object | The movie information. |