C# Class Jackett.Indexers.CardigannIndexer

Inheritance: BaseIndexer, IIndexer
Exibir arquivo Open project: Jackett/Jackett Class Usage Examples

Protected Properties

Property Type Description
Definition IndexerDefinition
OptionalFileds string[]
landingResult Jackett.Utils.Clients.WebClientStringResult
landingResultDocument IHtmlDocument

Private Properties

Property Type Description

Public Methods

Method Description
ApplyConfiguration ( JToken configJson ) : Task
CardigannIndexer ( IIndexerManagerService i, IWebClient wc, Logger l, IProtectionService ps ) : Jackett.Utils.Clients
CardigannIndexer ( IIndexerManagerService i, IWebClient wc, Logger l, IProtectionService ps, string DefinitionString ) : Jackett.Utils.Clients
Download ( Uri link ) : Task
GetConfigurationForSetup ( ) : Task
PerformQuery ( TorznabQuery query ) : Task>

Protected Methods

Method Description
CheckIfLoginIsNeeded ( WebClientStringResult Result, IHtmlDocument document ) : bool
DoLogin ( ) : Task
Init ( string DefinitionString ) : void
QuerySelector ( IElement Element, string Selector ) : IElement
TestLogin ( ) : Task
applyFilters ( string Data, List Filters ) : string
applyGoTemplateText ( string template, object>.Dictionary variables = null ) : string
checkForLoginError ( WebClientStringResult loginResult ) : bool
getTemplateVariablesFromConfigData ( ) : object>.Dictionary
handleSelector ( selectorBlock Selector, IElement Dom ) : string
resolvePath ( string path ) : Uri

Method Details

ApplyConfiguration() public method

public ApplyConfiguration ( JToken configJson ) : Task
configJson JToken
return Task

CardigannIndexer() public method

public CardigannIndexer ( IIndexerManagerService i, IWebClient wc, Logger l, IProtectionService ps ) : Jackett.Utils.Clients
i IIndexerManagerService
wc Jackett.Utils.Clients.IWebClient
l Logger
ps IProtectionService
return Jackett.Utils.Clients

CardigannIndexer() public method

public CardigannIndexer ( IIndexerManagerService i, IWebClient wc, Logger l, IProtectionService ps, string DefinitionString ) : Jackett.Utils.Clients
i IIndexerManagerService
wc Jackett.Utils.Clients.IWebClient
l Logger
ps IProtectionService
DefinitionString string
return Jackett.Utils.Clients

CheckIfLoginIsNeeded() protected method

protected CheckIfLoginIsNeeded ( WebClientStringResult Result, IHtmlDocument document ) : bool
Result Jackett.Utils.Clients.WebClientStringResult
document IHtmlDocument
return bool

DoLogin() protected method

protected DoLogin ( ) : Task
return Task

Download() public method

public Download ( Uri link ) : Task
link System.Uri
return Task

GetConfigurationForSetup() public method

public GetConfigurationForSetup ( ) : Task
return Task

Init() protected method

protected Init ( string DefinitionString ) : void
DefinitionString string
return void

PerformQuery() public method

public PerformQuery ( TorznabQuery query ) : Task>
query Jackett.Models.TorznabQuery
return Task>

QuerySelector() protected method

protected QuerySelector ( IElement Element, string Selector ) : IElement
Element IElement
Selector string
return IElement

TestLogin() protected method

protected TestLogin ( ) : Task
return Task

applyFilters() protected method

protected applyFilters ( string Data, List Filters ) : string
Data string
Filters List
return string

applyGoTemplateText() protected method

protected applyGoTemplateText ( string template, object>.Dictionary variables = null ) : string
template string
variables object>.Dictionary
return string

checkForLoginError() protected method

protected checkForLoginError ( WebClientStringResult loginResult ) : bool
loginResult Jackett.Utils.Clients.WebClientStringResult
return bool

getTemplateVariablesFromConfigData() protected method

protected getTemplateVariablesFromConfigData ( ) : object>.Dictionary
return object>.Dictionary

handleSelector() protected method

protected handleSelector ( selectorBlock Selector, IElement Dom ) : string
Selector selectorBlock
Dom IElement
return string

resolvePath() protected method

protected resolvePath ( string path ) : Uri
path string
return System.Uri

Property Details

Definition protected_oe property

protected IndexerDefinition Definition
return IndexerDefinition

OptionalFileds protected_oe property

protected string[] OptionalFileds
return string[]

landingResult protected_oe property

protected WebClientStringResult,Jackett.Utils.Clients landingResult
return Jackett.Utils.Clients.WebClientStringResult

landingResultDocument protected_oe property

protected IHtmlDocument landingResultDocument
return IHtmlDocument