C# Class Jackett.Indexers.BaseIndexer

Afficher le fichier Open project: Jackett/Jackett

Protected Properties

Свойство Type Description
cache List
cacheTime System.TimeSpan
configData ConfigurationData
downloadUrlBase string
indexerService IIndexerManagerService
logger Logger
protectionService IProtectionService
webclient Jackett.Utils.Clients.IWebClient

Méthodes publiques

Méthode Description
BaseIndexer ( IIndexerManagerService manager, IWebClient client, Logger logger, IProtectionService p ) : System
BaseIndexer ( string name, string link, string description, IIndexerManagerService manager, IWebClient client, Logger logger, ConfigurationData configData, IProtectionService p, TorznabCapabilities caps = null, string downloadBase = null ) : System
CleanLinks ( IEnumerable releases ) : IEnumerable
Download ( Uri link ) : Task
FilterResults ( TorznabQuery query, IEnumerable results ) : IEnumerable
GetConfigurationForSetup ( ) : Task
GetIndexerID ( Type type ) : string
LoadFromSavedConfiguration ( JToken jsonConfig ) : void
ResetBaseConfig ( ) : void
UncleanLink ( Uri link ) : Uri

Méthodes protégées

Méthode Description
AddCategoryMapping ( int trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null ) : void
AddCategoryMapping ( string trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null ) : void
AddMultiCategoryMapping ( TorznabCategory newznabCategory ) : void
CleanCache ( ) : void
ConfigureIfOK ( string cookies, bool isLoggedin, Func onError ) : Task
FollowIfRedirect ( WebClientByteResult response, string referrer = null, string overrideRedirectUrl = null, string overrideCookies = null, bool accumulateCookies = false ) : Task
FollowIfRedirect ( WebClientStringResult response, string referrer = null, string overrideRedirectUrl = null, string overrideCookies = null, bool accumulateCookies = false ) : Task
LoadLegacyCookieConfig ( JToken jsonConfig ) : void
MapTorznabCapsToTrackers ( TorznabQuery query, bool mapChildrenCatsToParent = false ) : List
MapTrackerCatDescToNewznab ( string input ) : int
MapTrackerCatToNewznab ( string input ) : int
OnParseError ( string results, Exception ex ) : void
PostDataWithCookies ( string url, string>.IEnumerable data, string cookieOverride = null, string referer = null, string>.Dictionary headers = null, string rawbody = null, bool emulateBrowser = null ) : Task
PostDataWithCookiesAndRetry ( string url, string>.IEnumerable data, string cookieOverride = null, string referer = null, string>.Dictionary headers = null, string rawbody = null, bool emulateBrowser = null ) : Task
RequestBytesWithCookies ( string url, string cookieOverride = null ) : Task
RequestBytesWithCookiesAndRetry ( string url, string cookieOverride = null ) : Task
RequestLoginAndFollowRedirect ( string url, string>.IEnumerable data, string cookies, bool returnCookiesFromFirstCall, string redirectUrlOverride = null, string referer = null, bool accumulateCookies = false ) : Task
RequestStringWithCookies ( string url, string cookieOverride = null, string referer = null, string>.Dictionary headers = null ) : Task
RequestStringWithCookiesAndRetry ( string url, string cookieOverride = null, string referer = null, string>.Dictionary headers = null ) : Task
SaveConfig ( ) : void
UpdateCookieHeader ( string newCookies, string cookieOverride = null ) : void

Private Methods

Méthode Description
DoFollowIfRedirect ( WebClientByteResult incomingResponse, string referrer = null, string overrideRedirectUrl = null, string overrideCookies = null, bool accumulateCookies = false ) : Task
ResolveCookies ( String incomingCookies = "" ) : String

Method Details

AddCategoryMapping() protected méthode

protected AddCategoryMapping ( int trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null ) : void
trackerCategory int
newznabCategory Jackett.Models.TorznabCategory
trackerCategoryDesc string
Résultat void

AddCategoryMapping() protected méthode

protected AddCategoryMapping ( string trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null ) : void
trackerCategory string
newznabCategory Jackett.Models.TorznabCategory
trackerCategoryDesc string
Résultat void

AddMultiCategoryMapping() protected méthode

protected AddMultiCategoryMapping ( TorznabCategory newznabCategory ) : void
newznabCategory Jackett.Models.TorznabCategory
Résultat void

BaseIndexer() public méthode

public BaseIndexer ( IIndexerManagerService manager, IWebClient client, Logger logger, IProtectionService p ) : System
manager IIndexerManagerService
client Jackett.Utils.Clients.IWebClient
logger Logger
p IProtectionService
Résultat System

BaseIndexer() public méthode

public BaseIndexer ( string name, string link, string description, IIndexerManagerService manager, IWebClient client, Logger logger, ConfigurationData configData, IProtectionService p, TorznabCapabilities caps = null, string downloadBase = null ) : System
name string
link string
description string
manager IIndexerManagerService
client Jackett.Utils.Clients.IWebClient
logger Logger
configData ConfigurationData
p IProtectionService
caps Jackett.Models.TorznabCapabilities
downloadBase string
Résultat System

CleanCache() protected méthode

protected CleanCache ( ) : void
Résultat void

CleanLinks() public méthode

public CleanLinks ( IEnumerable releases ) : IEnumerable
releases IEnumerable
Résultat IEnumerable

ConfigureIfOK() protected méthode

protected ConfigureIfOK ( string cookies, bool isLoggedin, Func onError ) : Task
cookies string
isLoggedin bool
onError Func
Résultat Task

Download() public méthode

public Download ( Uri link ) : Task
link System.Uri
Résultat Task

FilterResults() public méthode

public FilterResults ( TorznabQuery query, IEnumerable results ) : IEnumerable
query Jackett.Models.TorznabQuery
results IEnumerable
Résultat IEnumerable

FollowIfRedirect() protected méthode

protected FollowIfRedirect ( WebClientByteResult response, string referrer = null, string overrideRedirectUrl = null, string overrideCookies = null, bool accumulateCookies = false ) : Task
response Jackett.Utils.Clients.WebClientByteResult
referrer string
overrideRedirectUrl string
overrideCookies string
accumulateCookies bool
Résultat Task

FollowIfRedirect() protected méthode

protected FollowIfRedirect ( WebClientStringResult response, string referrer = null, string overrideRedirectUrl = null, string overrideCookies = null, bool accumulateCookies = false ) : Task
response Jackett.Utils.Clients.WebClientStringResult
referrer string
overrideRedirectUrl string
overrideCookies string
accumulateCookies bool
Résultat Task

GetConfigurationForSetup() public méthode

public GetConfigurationForSetup ( ) : Task
Résultat Task

GetIndexerID() public static méthode

public static GetIndexerID ( Type type ) : string
type System.Type
Résultat string

LoadFromSavedConfiguration() public méthode

public LoadFromSavedConfiguration ( JToken jsonConfig ) : void
jsonConfig JToken
Résultat void

LoadLegacyCookieConfig() protected méthode

protected LoadLegacyCookieConfig ( JToken jsonConfig ) : void
jsonConfig JToken
Résultat void

MapTorznabCapsToTrackers() protected méthode

protected MapTorznabCapsToTrackers ( TorznabQuery query, bool mapChildrenCatsToParent = false ) : List
query Jackett.Models.TorznabQuery
mapChildrenCatsToParent bool
Résultat List

MapTrackerCatDescToNewznab() protected méthode

protected MapTrackerCatDescToNewznab ( string input ) : int
input string
Résultat int

MapTrackerCatToNewznab() protected méthode

protected MapTrackerCatToNewznab ( string input ) : int
input string
Résultat int

OnParseError() protected méthode

protected OnParseError ( string results, Exception ex ) : void
results string
ex System.Exception
Résultat void

PostDataWithCookies() protected méthode

protected PostDataWithCookies ( string url, string>.IEnumerable data, string cookieOverride = null, string referer = null, string>.Dictionary headers = null, string rawbody = null, bool emulateBrowser = null ) : Task
url string
data string>.IEnumerable
cookieOverride string
referer string
headers string>.Dictionary
rawbody string
emulateBrowser bool
Résultat Task

PostDataWithCookiesAndRetry() protected méthode

protected PostDataWithCookiesAndRetry ( string url, string>.IEnumerable data, string cookieOverride = null, string referer = null, string>.Dictionary headers = null, string rawbody = null, bool emulateBrowser = null ) : Task
url string
data string>.IEnumerable
cookieOverride string
referer string
headers string>.Dictionary
rawbody string
emulateBrowser bool
Résultat Task

RequestBytesWithCookies() protected méthode

protected RequestBytesWithCookies ( string url, string cookieOverride = null ) : Task
url string
cookieOverride string
Résultat Task

RequestBytesWithCookiesAndRetry() protected méthode

protected RequestBytesWithCookiesAndRetry ( string url, string cookieOverride = null ) : Task
url string
cookieOverride string
Résultat Task

RequestLoginAndFollowRedirect() protected méthode

protected RequestLoginAndFollowRedirect ( string url, string>.IEnumerable data, string cookies, bool returnCookiesFromFirstCall, string redirectUrlOverride = null, string referer = null, bool accumulateCookies = false ) : Task
url string
data string>.IEnumerable
cookies string
returnCookiesFromFirstCall bool
redirectUrlOverride string
referer string
accumulateCookies bool
Résultat Task

RequestStringWithCookies() protected méthode

protected RequestStringWithCookies ( string url, string cookieOverride = null, string referer = null, string>.Dictionary headers = null ) : Task
url string
cookieOverride string
referer string
headers string>.Dictionary
Résultat Task

RequestStringWithCookiesAndRetry() protected méthode

protected RequestStringWithCookiesAndRetry ( string url, string cookieOverride = null, string referer = null, string>.Dictionary headers = null ) : Task
url string
cookieOverride string
referer string
headers string>.Dictionary
Résultat Task

ResetBaseConfig() public méthode

public ResetBaseConfig ( ) : void
Résultat void

SaveConfig() protected méthode

protected SaveConfig ( ) : void
Résultat void

UncleanLink() public méthode

public UncleanLink ( Uri link ) : Uri
link System.Uri
Résultat System.Uri

UpdateCookieHeader() protected méthode

protected UpdateCookieHeader ( string newCookies, string cookieOverride = null ) : void
newCookies string
cookieOverride string
Résultat void

Property Details

cache protected_oe static_oe property

protected static List cache
Résultat List

cacheTime protected_oe static_oe property

protected static TimeSpan,System cacheTime
Résultat System.TimeSpan

configData protected_oe property

protected ConfigurationData configData
Résultat ConfigurationData

downloadUrlBase protected_oe property

protected string downloadUrlBase
Résultat string

indexerService protected_oe property

protected IIndexerManagerService indexerService
Résultat IIndexerManagerService

logger protected_oe property

protected Logger logger
Résultat Logger

protectionService protected_oe property

protected IProtectionService protectionService
Résultat IProtectionService

webclient protected_oe property

protected IWebClient,Jackett.Utils.Clients webclient
Résultat Jackett.Utils.Clients.IWebClient