C# Class CrunchyPlugin.Crunchy

Inheritance: ADBaseLibrary.BaseDownloadPlugin, IDownloadPlugin
Mostra file Open project: maxpiva/AnimeOfflineDownloader

Public Methods

Method Description
Authenticate ( object>.Dictionary authenticationmetadata ) : Task
Crunchy ( ) : System
Deserialize ( string>.Dictionary data ) : ISession
Download ( ISession session, Episode episode, string template, string downloadpath, Quality quality, System.Text.Format formats, CancellationToken token, IProgress progress ) : Task
Episodes ( ISession session, Show show ) : Task
Exit ( ) : void
Information ( ) : DownloadPluginInfo
SetRequirements ( object>.Dictionary globalmetadata ) : Task
Shows ( ISession session ) : Task
Shows ( ISession session, ShowType type ) : Task
Updates ( ISession session ) : Task

Private Methods

Method Description
AddEpisodes ( Episodes ret, Show show, string data, string seasoname, int seasonnum, bool firstone = false ) : void
AudioLanguageFromEpisode ( Episode ep ) : string>.KeyValuePair
CreateKeyString ( int length, int module, int start1, int start2 ) : string
DecodeSubtitle ( int subtitleId, string ivBase64, string dataBase64, CrunchySubtitleInfo &si ) : void
GenerateKey ( int mediaid ) : byte[]
GetEpisodeUpdate ( CrunchySession s, Episode placeholder, string datetime ) : Task
GetStandardConfig ( CrunchySession token, string epid, Quality qlty ) : Task
GetSubtitle ( CrunchySession token, int subid ) : Task
LocaleFromString ( string str ) : string
ParseHost ( string host ) : string>.KeyValuePair
QualityConvert ( Quality q ) : string>.KeyValuePair
SetLocale ( string locale, CookieCollection cookies ) : Task
ShowFromType ( ShowType type ) : string
Updates ( CrunchySession s, ShowType t ) : Task
VerifyLogin ( CookieCollection cookies ) : bool

Method Details

Authenticate() public method

public Authenticate ( object>.Dictionary authenticationmetadata ) : Task
authenticationmetadata object>.Dictionary
return Task

Crunchy() public method

public Crunchy ( ) : System
return System

Deserialize() public method

public Deserialize ( string>.Dictionary data ) : ISession
data string>.Dictionary
return ISession

Download() public method

public Download ( ISession session, Episode episode, string template, string downloadpath, Quality quality, System.Text.Format formats, CancellationToken token, IProgress progress ) : Task
session ISession
episode ADBaseLibrary.Episode
template string
downloadpath string
quality Quality
formats System.Text.Format
token System.Threading.CancellationToken
progress IProgress
return Task

Episodes() public method

public Episodes ( ISession session, Show show ) : Task
session ISession
show ADBaseLibrary.Show
return Task

Exit() public method

public Exit ( ) : void
return void

Information() public method

public Information ( ) : DownloadPluginInfo
return ADBaseLibrary.DownloadPluginInfo

SetRequirements() public method

public SetRequirements ( object>.Dictionary globalmetadata ) : Task
globalmetadata object>.Dictionary
return Task

Shows() public method

public Shows ( ISession session ) : Task
session ISession
return Task

Shows() public method

public Shows ( ISession session, ShowType type ) : Task
session ISession
type ShowType
return Task

Updates() public method

public Updates ( ISession session ) : Task
session ISession
return Task