C# 클래스 Jackett.Indexers.BaseIndexer

파일 보기 프로젝트 열기: Jackett/Jackett

보호된 프로퍼티들

프로퍼티 타입 설명
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