本文整理汇总了C#中IProtectionService类的典型用法代码示例。如果您正苦于以下问题:C# IProtectionService类的具体用法?C# IProtectionService怎么用?C# IProtectionService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IProtectionService类属于命名空间,在下文中一共展示了IProtectionService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PassThePopcorn
public PassThePopcorn(IIndexerManagerService i, Logger l, IWebClient c, IProtectionService ps)
: base(name: "PassThePopcorn",
description: "PassThePopcorn",
link: "https://passthepopcorn.me/",
caps: new TorznabCapabilities(),
manager: i,
client: c,
logger: l,
p: ps,
configData: new ConfigurationDataBasicLoginWithFilterAndPasskey(@"Enter filter options below to restrict search results.
Separate options with a space if using more than one option.<br>Filter options available:
<br><code>GoldenPopcorn</code><br><code>Scene</code><br><code>Checked</code>"))
{
Encoding = Encoding.UTF8;
Language = "en-us";
AddCategoryMapping(1, TorznabCatType.Movies);
AddCategoryMapping(1, TorznabCatType.MoviesForeign);
AddCategoryMapping(1, TorznabCatType.MoviesOther);
AddCategoryMapping(1, TorznabCatType.MoviesSD);
AddCategoryMapping(1, TorznabCatType.MoviesHD);
AddCategoryMapping(1, TorznabCatType.Movies3D);
AddCategoryMapping(1, TorznabCatType.MoviesBluRay);
AddCategoryMapping(1, TorznabCatType.MoviesDVD);
AddCategoryMapping(1, TorznabCatType.MoviesWEBDL);
}
示例2: PirateTheNet
public PirateTheNet(IIndexerManagerService i, Logger l, IWebClient w, IProtectionService ps)
: base(name: "PirateTheNet",
description: "A movie tracker",
link: "http://piratethe.net/",
caps: new TorznabCapabilities(),
manager: i,
client: w,
logger: l,
p: ps,
configData: new ConfigurationDataBasicLoginWithRSSAndDisplay())
{
Encoding = Encoding.GetEncoding("UTF-8");
Language = "en-us";
this.configData.DisplayText.Value = "Only the results from the first search result page are shown, adjust your profile settings to show the maximum.";
this.configData.DisplayText.Name = "Notice";
AddCategoryMapping("1080P", TorznabCatType.MoviesHD);
AddCategoryMapping("720P", TorznabCatType.MoviesHD);
AddCategoryMapping("BDRip", TorznabCatType.MoviesSD);
AddCategoryMapping("BluRay", TorznabCatType.MoviesBluRay);
AddCategoryMapping("BRRip", TorznabCatType.MoviesSD);
AddCategoryMapping("DVDR", TorznabCatType.MoviesDVD);
AddCategoryMapping("DVDRip", TorznabCatType.MoviesSD);
AddCategoryMapping("FLAC", TorznabCatType.AudioLossless);
AddCategoryMapping("MP3", TorznabCatType.AudioMP3);
AddCategoryMapping("MP4", TorznabCatType.AudioOther);
AddCategoryMapping("Packs", TorznabCatType.Movies);
AddCategoryMapping("R5", TorznabCatType.MoviesDVD);
AddCategoryMapping("Remux", TorznabCatType.Movies);
AddCategoryMapping("TVRip", TorznabCatType.MoviesOther);
AddCategoryMapping("WebRip", TorznabCatType.MoviesWEBDL);
}
示例3: GFTracker
public GFTracker(IIndexerManagerService i, Logger l, IWebClient w, IProtectionService ps)
: base(name: "GFTracker",
description: "Home of user happiness",
link: "https://www.thegft.org/",
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
manager: i,
client: w,
logger: l,
p: ps,
configData: new ConfigurationDataRecaptchaLogin())
{
Encoding = Encoding.UTF8;
Language = "en-us";
AddCategoryMapping(4, TorznabCatType.TV); // TV/XVID
AddCategoryMapping(17, TorznabCatType.TVHD); // TV/X264
AddCategoryMapping(19, TorznabCatType.TV); // TV/DVDRIP
AddCategoryMapping(26, TorznabCatType.TVHD); // TV/BLURAY
AddCategoryMapping(37, TorznabCatType.TV); // TV/DVDR
AddCategoryMapping(47, TorznabCatType.TV); // TV/SD
AddCategoryMapping(7, TorznabCatType.Movies); // Movies/XVID
AddCategoryMapping(8, TorznabCatType.MoviesDVD); // Movies/DVDR
AddCategoryMapping(12, TorznabCatType.MoviesBluRay); // Movies/BLURAY
AddCategoryMapping(18, TorznabCatType.MoviesHD); // Movies/X264-HD
AddCategoryMapping(49, TorznabCatType.MoviesSD); // Movies/X264-SD
}
示例4: Hebits
public Hebits(IIndexerManagerService i, Logger l, IWebClient wc, IProtectionService ps)
: base(name: "Hebits",
description: "The Israeli Tracker",
link: "https://hebits.net/",
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
manager: i,
client: wc,
logger: l,
p: ps,
downloadBase: "https://hebits.net/",
configData: new ConfigurationDataBasicLogin())
{
Encoding = Encoding.GetEncoding("windows-1255");
Language = "he-il";
AddCategoryMapping(19, TorznabCatType.MoviesSD);
AddCategoryMapping(25, TorznabCatType.MoviesOther); // Israeli Content
AddCategoryMapping(20, TorznabCatType.MoviesDVD);
AddCategoryMapping(36, TorznabCatType.MoviesBluRay);
AddCategoryMapping(27, TorznabCatType.MoviesHD);
AddCategoryMapping(7, TorznabCatType.TVSD); // Israeli SDTV
AddCategoryMapping(24, TorznabCatType.TVSD); // English SDTV
AddCategoryMapping(1, TorznabCatType.TVHD); // Israel HDTV
AddCategoryMapping(37, TorznabCatType.TVHD); // Israel HDTV
}
示例5: Hounddawgs
public Hounddawgs(IIndexerManagerService i, Logger l, IWebClient c, IProtectionService ps)
: base(name: "Hounddawgs",
description: "A danish closed torrent tracker",
link: "https://hounddawgs.org/",
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
manager: i,
client: c,
logger: l,
p: ps,
configData: new NxtGnConfigurationData())
{
AddCategoryMapping(92, TorznabCatType.TV);
AddCategoryMapping(92, TorznabCatType.TVHD);
AddCategoryMapping(92, TorznabCatType.TVWEBDL);
AddCategoryMapping(93, TorznabCatType.TVSD);
AddCategoryMapping(93, TorznabCatType.TV);
AddCategoryMapping(57, TorznabCatType.TV);
AddCategoryMapping(57, TorznabCatType.TVHD);
AddCategoryMapping(57, TorznabCatType.TVWEBDL);
AddCategoryMapping(74, TorznabCatType.TVSD);
AddCategoryMapping(74, TorznabCatType.TV);
}
示例6: AnimeTorrents
public AnimeTorrents(IIndexerManagerService i, HttpWebClient c, Logger l, IProtectionService ps)
: base(name: "AnimeTorrents",
description: "Definitive source for anime and manga",
link: "http://animetorrents.me/",
caps: new TorznabCapabilities(),
manager: i,
client: c, // Forced HTTP client for custom headers
logger: l,
p: ps,
configData: new ConfigurationDataBasicLogin())
{
AddCategoryMapping(1, TorznabCatType.MoviesSD); // Anime Movie
AddCategoryMapping(6, TorznabCatType.MoviesHD); // Anime Movie HD
AddCategoryMapping(2, TorznabCatType.TVAnime); // Anime Series
AddCategoryMapping(7, TorznabCatType.TVAnime); // Anime Series HD
AddCategoryMapping(5, TorznabCatType.XXXDVD); // Hentai (censored)
AddCategoryMapping(9, TorznabCatType.XXXDVD); // Hentai (censored) HD
AddCategoryMapping(4, TorznabCatType.XXXDVD); // Hentai (un-censored)
AddCategoryMapping(8, TorznabCatType.XXXDVD); // Hentai (un-censored) HD
AddCategoryMapping(13, TorznabCatType.BooksForeign); // Light Novel
AddCategoryMapping(3, TorznabCatType.BooksComics); // Manga
AddCategoryMapping(10, TorznabCatType.BooksComics); // Manga 18+
AddCategoryMapping(11, TorznabCatType.TVAnime); // OVA
AddCategoryMapping(12, TorznabCatType.TVAnime); // OVA HD
AddCategoryMapping(14, TorznabCatType.BooksComics); // Doujin Anime
AddCategoryMapping(15, TorznabCatType.XXXDVD); // Doujin Anime 18+
AddCategoryMapping(16, TorznabCatType.AudioForeign); // Doujin Music
AddCategoryMapping(17, TorznabCatType.BooksComics); // Doujinshi
AddCategoryMapping(18, TorznabCatType.BooksComics); // Doujinshi 18+
AddCategoryMapping(19, TorznabCatType.Audio); // OST
}
示例7: HDTorrents
public HDTorrents(IIndexerManagerService i, Logger l, IWebClient w, IProtectionService ps)
: base(name: "HD-Torrents",
description: "HD-Torrents is a private torrent website with HD torrents and strict rules on their content.",
link: "http://hdts.ru/",// Of the accessible domains the .ru seems the most reliable. https://hdts.ru | https://hd-torrents.org | https://hd-torrents.net | https://hd-torrents.me
manager: i,
client: w,
logger: l,
p: ps,
configData: new ConfigurationDataBasicLogin())
{
TorznabCaps.Categories.Clear();
AddCategoryMapping("1", TorznabCatType.MoviesHD);// Movie/Blu-Ray
AddCategoryMapping("2", TorznabCatType.MoviesHD);// Movie/Remux
AddCategoryMapping("5", TorznabCatType.MoviesHD);//Movie/1080p/i
AddCategoryMapping("3", TorznabCatType.MoviesHD);//Movie/720p
AddCategoryMapping("63", TorznabCatType.Audio);//Movie/Audio Track
AddCategoryMapping("59", TorznabCatType.TVHD);//TV Show/Blu-ray
AddCategoryMapping("60", TorznabCatType.TVHD);//TV Show/Remux
AddCategoryMapping("30", TorznabCatType.TVHD);//TV Show/1080p/i
AddCategoryMapping("38", TorznabCatType.TVHD);//TV Show/720p
AddCategoryMapping("44", TorznabCatType.Audio);//Music/Album
AddCategoryMapping("61", TorznabCatType.AudioVideo);//Music/Blu-Ray
AddCategoryMapping("62", TorznabCatType.AudioVideo);//Music/Remux
AddCategoryMapping("57", TorznabCatType.AudioVideo);//Music/1080p/i
AddCategoryMapping("45", TorznabCatType.AudioVideo);//Music/720p
AddCategoryMapping("58", TorznabCatType.XXX);//XXX/Blu-ray
AddCategoryMapping("48", TorznabCatType.XXX);//XXX/1080p/i
AddCategoryMapping("47", TorznabCatType.XXX);//XXX/720p
}
示例8: BaseIndexer
// minimal constructor used by e.g. cardigann generic indexer
public BaseIndexer(IIndexerManagerService manager, IWebClient client, Logger logger, IProtectionService p)
{
this.logger = logger;
indexerService = manager;
webclient = client;
protectionService = p;
}
示例9: BeyondHD
public BeyondHD(IIndexerManagerService i, Logger l, IWebClient w, IProtectionService ps)
: base(name: "BeyondHD",
description: "Without BeyondHD, your HDTV is just a TV",
link: "https://beyondhd.me/",
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
manager: i,
client: w,
logger: l,
p: ps,
configData: new ConfigurationDataCookie())
{
AddCategoryMapping("40,44,48,89,46,45", TorznabCatType.TV);
AddCategoryMapping("40", TorznabCatType.TVHD);
AddCategoryMapping("44", TorznabCatType.TVHD);
AddCategoryMapping("48", TorznabCatType.TVHD);
AddCategoryMapping("46", TorznabCatType.TVHD);
AddCategoryMapping("45", TorznabCatType.TVHD);
AddCategoryMapping("44", TorznabCatType.TVSD);
AddCategoryMapping("46", TorznabCatType.TVSD);
AddCategoryMapping("45", TorznabCatType.TVSD);
AddCategoryMapping("41,77,71,94,78,37,54,17", TorznabCatType.Movies);
AddCategoryMapping("77", TorznabCatType.MoviesHD);
AddCategoryMapping("71", TorznabCatType.Movies3D);
AddCategoryMapping("78", TorznabCatType.MoviesHD);
AddCategoryMapping("37", TorznabCatType.MoviesBluRay);
AddCategoryMapping("54", TorznabCatType.MoviesHD);
AddCategoryMapping("55,56,42,36,69", TorznabCatType.Audio);
AddCategoryMapping("36", TorznabCatType.AudioLossless);
AddCategoryMapping("69", TorznabCatType.AudioMP3);
}
示例10: AlphaRatio
public AlphaRatio(IIndexerManagerService i, IWebClient w, Logger l, IProtectionService ps)
: base(name: "AlphaRatio",
description: "Legendary",
link: "https://alpharatio.cc/",
caps: new TorznabCapabilities(),
manager: i,
client: w,
logger: l,
p: ps,
downloadBase: "https://alpharatio.cc/torrents.php?action=download&id=",
configData: new ConfigurationDataBasicLogin())
{
Encoding = Encoding.GetEncoding("UTF-8");
Language = "en-us";
AddCategoryMapping(1, TorznabCatType.TVSD);
AddCategoryMapping(2, TorznabCatType.TVHD);
AddCategoryMapping(6, TorznabCatType.MoviesSD);
AddCategoryMapping(7, TorznabCatType.MoviesHD);
AddCategoryMapping(10, TorznabCatType.XXX);
AddCategoryMapping(20, TorznabCatType.XXX);
AddCategoryMapping(12, TorznabCatType.PCGames);
AddCategoryMapping(13, TorznabCatType.ConsoleXbox);
AddCategoryMapping(14, TorznabCatType.ConsolePS3);
AddCategoryMapping(15, TorznabCatType.ConsoleWii);
AddCategoryMapping(16, TorznabCatType.PC);
AddCategoryMapping(17, TorznabCatType.PCMac);
AddCategoryMapping(19, TorznabCatType.PCPhoneOther);
AddCategoryMapping(21, TorznabCatType.BooksEbook);
AddCategoryMapping(22, TorznabCatType.AudioAudiobook);
AddCategoryMapping(23, TorznabCatType.Audio);
}
示例11: Strike
public Strike(IIndexerManagerService i, Logger l, IWebClient wc, IProtectionService ps)
: base(name: "Strike",
description: "Torrent search engine",
link: defaultSiteLink,
caps: new TorznabCapabilities(),
manager: i,
client: wc,
logger: l,
p: ps,
configData: new ConfigurationDataStrike(defaultSiteLink))
{
AddCategoryMapping("Anime", TorznabCatType.TVAnime);
AddCategoryMapping("Applications", TorznabCatType.PC);
AddCategoryMapping("Books", TorznabCatType.Books);
AddCategoryMapping("Games", TorznabCatType.PCGames);
AddCategoryMapping("Movies", TorznabCatType.Movies);
AddCategoryMapping("TV", TorznabCatType.TV);
AddCategoryMapping("XXX", TorznabCatType.XXX);
AddCategoryMapping("Music", TorznabCatType.Audio);
/*AddCategoryMapping("Movies:Highres Movies", TorznabCatType.MoviesHD);
AddCategoryMapping("Movies:3D Movies", TorznabCatType.Movies3D);
AddCategoryMapping("Books:Ebooks", TorznabCatType.BooksEbook);
AddCategoryMapping("Books:Comics", TorznabCatType.BooksComics);
AddCategoryMapping("Books:Audio Books", TorznabCatType.AudioAudiobook);
AddCategoryMapping("Games:XBOX360", TorznabCatType.ConsoleXbox360);
AddCategoryMapping("Games:Wii", TorznabCatType.ConsoleWii);
AddCategoryMapping("Games:PSP", TorznabCatType.ConsolePSP);
AddCategoryMapping("Games:PS3", TorznabCatType.ConsolePS3);
AddCategoryMapping("Games:PC", TorznabCatType.PCGames);
AddCategoryMapping("Games:Android", TorznabCatType.PCPhoneAndroid);
AddCategoryMapping("Music:Mp3", TorznabCatType.AudioMP3);*/
}
示例12: BitHdtv
public BitHdtv(IIndexerManagerService i, Logger l, IWebClient w, IProtectionService ps)
: base(name: "BIT-HDTV",
description: "Home of high definition invites",
link: "https://www.bit-hdtv.com/",
caps: new TorznabCapabilities(),
manager: i,
client: w,
logger: l,
p: ps,
configData: new ConfigurationDataBasicLogin())
{
Encoding = Encoding.GetEncoding("iso-8859-1");
Language = "en-us";
AddCategoryMapping(1, TorznabCatType.TVAnime); // Anime
AddCategoryMapping(2, TorznabCatType.MoviesBluRay); // Blu-ray
AddCategoryMapping(4, TorznabCatType.TVDocumentary); // Documentaries
AddCategoryMapping(6, TorznabCatType.AudioLossless); // HQ Audio
AddCategoryMapping(7, TorznabCatType.Movies); // Movies
AddCategoryMapping(8, TorznabCatType.AudioVideo); // Music Videos
AddCategoryMapping(5, TorznabCatType.TVSport); // Sports
AddCategoryMapping(10, TorznabCatType.TV); // TV
AddCategoryMapping(12, TorznabCatType.TV); // TV/Seasonpack
AddCategoryMapping(11, TorznabCatType.XXX); // XXX
}
示例13: FileList
public FileList(IIndexerManagerService i, IWebClient wc, Logger l, IProtectionService ps)
: base(name: "FileList",
description: "The best Romanian site.",
link: "http://filelist.ro/",
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
manager: i,
client: wc,
logger: l,
p: ps,
configData: new ConfigurationDataFileList())
{
AddCategoryMapping(24, TorznabCatType.TVAnime);
AddCategoryMapping(11, TorznabCatType.Audio);
AddCategoryMapping(15, TorznabCatType.TV);
//AddCategoryMapping(18, TorznabCatType.); Other
AddCategoryMapping(16, TorznabCatType.TVDocumentary);
AddCategoryMapping(25, TorznabCatType.Movies3D);
AddCategoryMapping(20, TorznabCatType.MoviesBluRay);
AddCategoryMapping(2, TorznabCatType.MoviesSD);
AddCategoryMapping(3, TorznabCatType.MoviesForeign); //RO
AddCategoryMapping(4, TorznabCatType.MoviesHD);
AddCategoryMapping(19, TorznabCatType.MoviesForeign); // RO
AddCategoryMapping(1, TorznabCatType.MoviesSD);
AddCategoryMapping(10, TorznabCatType.Console);
AddCategoryMapping(9, TorznabCatType.PCGames);
//AddCategoryMapping(17, TorznabCatType); Linux No cat
AddCategoryMapping(22, TorznabCatType.PCPhoneOther); //Apps/mobile
AddCategoryMapping(8, TorznabCatType.PC);
AddCategoryMapping(21, TorznabCatType.TVHD);
AddCategoryMapping(23, TorznabCatType.TVSD);
AddCategoryMapping(13, TorznabCatType.TVSport);
AddCategoryMapping(14, TorznabCatType.TV);
AddCategoryMapping(12, TorznabCatType.AudioVideo);
AddCategoryMapping(7, TorznabCatType.XXX);
}
示例14: BB
public BB(IIndexerManagerService i, Logger l, IWebClient w, IProtectionService ps)
: base(name: "bB",
description: "bB",
link: "http://www.reddit.com/r/baconbits/",
caps: new TorznabCapabilities(),
manager: i,
client: w,
logger: l,
p: ps,
configData: new ConfigurationDataBasicLogin())
{
Encoding = Encoding.GetEncoding("UTF-8");
Language = "en-us";
AddCategoryMapping(1, TorznabCatType.Audio);
AddCategoryMapping(2, TorznabCatType.PC);
AddCategoryMapping(3, TorznabCatType.BooksEbook);
AddCategoryMapping(4, TorznabCatType.AudioAudiobook);
AddCategoryMapping(7, TorznabCatType.BooksComics);
AddCategoryMapping(8, TorznabCatType.TVAnime);
AddCategoryMapping(9, TorznabCatType.Movies);
AddCategoryMapping(10, TorznabCatType.TVHD);
AddCategoryMapping(10, TorznabCatType.TVSD);
AddCategoryMapping(10, TorznabCatType.TV);
AddCategoryMapping(11, TorznabCatType.PCGames);
}
示例15: FunFile
public FunFile(IIndexerManagerService i, Logger l, IWebClient w, IProtectionService ps)
: base(name: "FunFile",
description: "A general tracker",
link: "https://www.funfile.org/",
caps: new TorznabCapabilities(),
manager: i,
client: w,
logger: l,
p: ps,
configData: new ConfigurationDataBasicLoginWithRSSAndDisplay())
{
Encoding = Encoding.GetEncoding("iso-8859-1");
Language = "en-us";
AddCategoryMapping(44, TorznabCatType.TVAnime); // Anime
AddCategoryMapping(22, TorznabCatType.PC); // Applications
AddCategoryMapping(43, TorznabCatType.AudioAudiobook); // Audio Books
AddCategoryMapping(27, TorznabCatType.Books); // Ebook
AddCategoryMapping(4, TorznabCatType.PCGames); // Games
AddCategoryMapping(40, TorznabCatType.OtherMisc); // Miscellaneous
AddCategoryMapping(19, TorznabCatType.Movies); // Movies
AddCategoryMapping(6, TorznabCatType.Audio); // Music
AddCategoryMapping(31, TorznabCatType.PCPhoneOther); // Portable
AddCategoryMapping(7, TorznabCatType.TV); // TV
}