C# Класс Jackett.Indexers.BaseIndexer

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
cache List
cacheTime System.TimeSpan
configData ConfigurationData
downloadUrlBase string
indexerService IIndexerManagerService
logger Logger
protectionService IProtectionService
webclient Jackett.Utils.Clients.IWebClient

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
DoFollowIfRedirect ( WebClientByteResult incomingResponse, string referrer = null, string overrideRedirectUrl = null, string overrideCookies = null, bool accumulateCookies = false ) : Task
ResolveCookies ( String incomingCookies = "" ) : String

Описание методов

AddCategoryMapping() защищенный Метод

protected AddCategoryMapping ( int trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null ) : void
trackerCategory int
newznabCategory Jackett.Models.TorznabCategory
trackerCategoryDesc string
Результат void

AddCategoryMapping() защищенный Метод

protected AddCategoryMapping ( string trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null ) : void
trackerCategory string
newznabCategory Jackett.Models.TorznabCategory
trackerCategoryDesc string
Результат void

AddMultiCategoryMapping() защищенный Метод

protected AddMultiCategoryMapping ( TorznabCategory newznabCategory ) : void
newznabCategory Jackett.Models.TorznabCategory
Результат void

BaseIndexer() публичный Метод

public BaseIndexer ( IIndexerManagerService manager, IWebClient client, Logger logger, IProtectionService p ) : System
manager IIndexerManagerService
client Jackett.Utils.Clients.IWebClient
logger Logger
p IProtectionService
Результат System

BaseIndexer() публичный Метод

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
Результат System

CleanCache() защищенный Метод

protected CleanCache ( ) : void
Результат void

CleanLinks() публичный Метод

public CleanLinks ( IEnumerable releases ) : IEnumerable
releases IEnumerable
Результат IEnumerable

ConfigureIfOK() защищенный Метод

protected ConfigureIfOK ( string cookies, bool isLoggedin, Func onError ) : Task
cookies string
isLoggedin bool
onError Func
Результат Task

Download() публичный Метод

public Download ( Uri link ) : Task
link System.Uri
Результат Task

FilterResults() публичный Метод

public FilterResults ( TorznabQuery query, IEnumerable results ) : IEnumerable
query Jackett.Models.TorznabQuery
results IEnumerable
Результат IEnumerable

FollowIfRedirect() защищенный Метод

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
Результат Task

FollowIfRedirect() защищенный Метод

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
Результат Task

GetConfigurationForSetup() публичный Метод

public GetConfigurationForSetup ( ) : Task
Результат Task

GetIndexerID() публичный статический Метод

public static GetIndexerID ( Type type ) : string
type System.Type
Результат string

LoadFromSavedConfiguration() публичный Метод

public LoadFromSavedConfiguration ( JToken jsonConfig ) : void
jsonConfig JToken
Результат void

LoadLegacyCookieConfig() защищенный Метод

protected LoadLegacyCookieConfig ( JToken jsonConfig ) : void
jsonConfig JToken
Результат void

MapTorznabCapsToTrackers() защищенный Метод

protected MapTorznabCapsToTrackers ( TorznabQuery query, bool mapChildrenCatsToParent = false ) : List
query Jackett.Models.TorznabQuery
mapChildrenCatsToParent bool
Результат List

MapTrackerCatDescToNewznab() защищенный Метод

protected MapTrackerCatDescToNewznab ( string input ) : int
input string
Результат int

MapTrackerCatToNewznab() защищенный Метод

protected MapTrackerCatToNewznab ( string input ) : int
input string
Результат int

OnParseError() защищенный Метод

protected OnParseError ( string results, Exception ex ) : void
results string
ex System.Exception
Результат void

PostDataWithCookies() защищенный Метод

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
Результат Task

PostDataWithCookiesAndRetry() защищенный Метод

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
Результат Task

RequestBytesWithCookies() защищенный Метод

protected RequestBytesWithCookies ( string url, string cookieOverride = null ) : Task
url string
cookieOverride string
Результат Task

RequestBytesWithCookiesAndRetry() защищенный Метод

protected RequestBytesWithCookiesAndRetry ( string url, string cookieOverride = null ) : Task
url string
cookieOverride string
Результат Task

RequestLoginAndFollowRedirect() защищенный Метод

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
Результат Task

RequestStringWithCookies() защищенный Метод

protected RequestStringWithCookies ( string url, string cookieOverride = null, string referer = null, string>.Dictionary headers = null ) : Task
url string
cookieOverride string
referer string
headers string>.Dictionary
Результат Task

RequestStringWithCookiesAndRetry() защищенный Метод

protected RequestStringWithCookiesAndRetry ( string url, string cookieOverride = null, string referer = null, string>.Dictionary headers = null ) : Task
url string
cookieOverride string
referer string
headers string>.Dictionary
Результат Task

ResetBaseConfig() публичный Метод

public ResetBaseConfig ( ) : void
Результат void

SaveConfig() защищенный Метод

protected SaveConfig ( ) : void
Результат void

UncleanLink() публичный Метод

public UncleanLink ( Uri link ) : Uri
link System.Uri
Результат System.Uri

UpdateCookieHeader() защищенный Метод

protected UpdateCookieHeader ( string newCookies, string cookieOverride = null ) : void
newCookies string
cookieOverride string
Результат void

Описание свойств

cache защищенное статическое свойство

protected static List cache
Результат List

cacheTime защищенное статическое свойство

protected static TimeSpan,System cacheTime
Результат System.TimeSpan

configData защищенное свойство

protected ConfigurationData configData
Результат ConfigurationData

downloadUrlBase защищенное свойство

protected string downloadUrlBase
Результат string

indexerService защищенное свойство

protected IIndexerManagerService indexerService
Результат IIndexerManagerService

logger защищенное свойство

protected Logger logger
Результат Logger

protectionService защищенное свойство

protected IProtectionService protectionService
Результат IProtectionService

webclient защищенное свойство

protected IWebClient,Jackett.Utils.Clients webclient
Результат Jackett.Utils.Clients.IWebClient