Home Manual Reference Source Test Repository
public class | source

BaseExtractor

Direct Subclass:

Extractor, Extractor, Extractor

Class for base extracting data from torrents.

Constructor Summary

Public Constructor
public

constructor(name: String, contentProvider: Object)

Create a base extractor object.

Member Summary

Public Members
public

The name of the torrent provider.

Private Members
private

The content provider used by the extractor.

private

The util object with general functions.

Method Summary

Private Methods
private

_getAllTorrents(totalPages: Integer, provider: Object): Array

Get all the torrents of a given provider.

Public Constructors

public constructor(name: String, contentProvider: Object) source

Create a base extractor object.

Params:

NameTypeAttributeDescription
name String

The name of the content provider.

contentProvider Object

The content provider to extract content from.

Public Members

public name: String source

The name of the torrent provider.

Private Members

private _contentProvider: Object source

The content provider used by the extractor.

private _util: Util source

The util object with general functions.

Private Methods

private _getAllTorrents(totalPages: Integer, provider: Object): Array source

Get all the torrents of a given provider.

Params:

NameTypeAttributeDescription
totalPages Integer

The total pages of the query.

provider Object

The provider to query the content provider.

Return:

Array

A list of all the queried torrents.