当前位置: 首页>>代码示例>>C#>>正文


C# Clients.IWebClient类代码示例

本文整理汇总了C#中Jackett.Utils.Clients.IWebClient的典型用法代码示例。如果您正苦于以下问题:C# IWebClient类的具体用法?C# IWebClient怎么用?C# IWebClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IWebClient类属于Jackett.Utils.Clients命名空间,在下文中一共展示了IWebClient类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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
        }
开发者ID:Jackett,项目名称:Jackett,代码行数:25,代码来源:FunFile.cs

示例2: Rarbg

        public Rarbg(IIndexerManagerService i, IWebClient wc, Logger l, IProtectionService ps)
            : base(name: "RARBG",
                description: "RARBG",
                link: defaultSiteLink,
                caps: new TorznabCapabilities(),
                manager: i,
                client: wc,
                logger: l,
                p: ps,
                configData: new ConfigurationDataUrl(defaultSiteLink))
        {
            categoryLabels = new Dictionary<string, int>();

            AddCat(4, TorznabCatType.XXX, "XXX (18+)");
            AddCat(14, TorznabCatType.MoviesSD, "Movies/XVID");
            AddCat(48, TorznabCatType.MoviesHD, "Movies/XVID/720");
            AddCat(17, TorznabCatType.MoviesSD, "Movies/x264");
            AddCat(44, TorznabCatType.MoviesHD, "Movies/x264/1080");
            AddCat(45, TorznabCatType.MoviesHD, "Movies/x264/720");
            AddCat(47, TorznabCatType.Movies3D, "Movies/x264/3D");
            AddCat(42, TorznabCatType.MoviesBluRay, "Movies/Full BD");
            AddCat(46, TorznabCatType.MoviesBluRay, "Movies/BD Remux");
            AddCat(18, TorznabCatType.TVSD, "TV Episodes");
            AddCat(41, TorznabCatType.TVHD, "TV HD Episodes");
            AddCat(23, TorznabCatType.AudioMP3, "Music/MP3");
            AddCat(25, TorznabCatType.AudioLossless, "Music/FLAC");
            AddCat(27, TorznabCatType.PCGames, "Games/PC ISO");
            AddCat(28, TorznabCatType.PCGames, "Games/PC RIP");
            AddCat(40, TorznabCatType.ConsolePS3, "Games/PS3");
            AddCat(32, TorznabCatType.ConsoleXbox360, "Games/XBOX-360");
            AddCat(33, TorznabCatType.PCISO, "Software/PC ISO");
            AddCat(35, TorznabCatType.BooksEbook, "e-Books");
        }
开发者ID:WarlaxZ,项目名称:Jackett,代码行数:33,代码来源:Rarbg.cs

示例3: 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);

		}
开发者ID:CatmanIX,项目名称:Shades,代码行数:26,代码来源:Hounddawgs.cs

示例4: 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);
        }
开发者ID:Jackett,项目名称:Jackett,代码行数:33,代码来源:PirateTheNet.cs

示例5: 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
        }
开发者ID:Jackett,项目名称:Jackett,代码行数:27,代码来源:GFTracker.cs

示例6: 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);*/
        }
开发者ID:WarlaxZ,项目名称:Jackett,代码行数:33,代码来源:Strike.cs

示例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
        }
开发者ID:CatmanIX,项目名称:Shades,代码行数:33,代码来源:HDTorrents.cs

示例8: 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);
        }
开发者ID:Drefsab,项目名称:Jackett,代码行数:32,代码来源:BeyondHD.cs

示例9: myAmity

        public myAmity(IIndexerManagerService i, IWebClient wc, Logger l, IProtectionService ps)
            : base(name: "myAmity",
                   description: "A German general tracker.",
                   link: "https://ttv2.myamity.info/",
                   caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
                   manager: i,
                   client: wc,
                   logger: l,
                   p: ps,
                   configData: new ConfigurationDataBasicLoginWithRSSAndDisplay())
        {
            Encoding = Encoding.GetEncoding("UTF-8");
            Language = "de-de";

            AddCategoryMapping(20, TorznabCatType.PC); // Apps - PC
            AddCategoryMapping(24, TorznabCatType.AudioAudiobook); // Audio - Hoerbuch/-spiel
            AddCategoryMapping(22, TorznabCatType.Audio); // Audio - Musik
            AddCategoryMapping(52, TorznabCatType.Movies3D); // Filme - 3D
            AddCategoryMapping(51, TorznabCatType.MoviesBluRay); // Filme - BluRay Complete
            AddCategoryMapping(1,  TorznabCatType.MoviesDVD); // Filme - DVD
            AddCategoryMapping(54, TorznabCatType.MoviesHD); // Filme - HD/1080p
            AddCategoryMapping(3,  TorznabCatType.MoviesHD); // Filme - HD/720p
            AddCategoryMapping(48, TorznabCatType.XXX); // Filme - Heimatfilme.XXX
            AddCategoryMapping(50, TorznabCatType.Movies); // Filme - x264/H.264
            AddCategoryMapping(2,  TorznabCatType.MoviesSD); // Filme - XViD
            AddCategoryMapping(11, TorznabCatType.Console); // Games - Konsolen
            AddCategoryMapping(10, TorznabCatType.PCGames); // Games - PC
            AddCategoryMapping(53, TorznabCatType.Other); // International - Complete
            AddCategoryMapping(36, TorznabCatType.Books); // Sonstige - E-Books
            AddCategoryMapping(38, TorznabCatType.Other); // Sonstige - Handy
            AddCategoryMapping(7,  TorznabCatType.TVDocumentary); // TV/HDTV - Dokus
            AddCategoryMapping(8,  TorznabCatType.TV); // TV/HDTV - Serien
        }
开发者ID:Jackett,项目名称:Jackett,代码行数:33,代码来源:myAmity.cs

示例10: 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);
 }
开发者ID:mraniki,项目名称:Jackett,代码行数:35,代码来源:FileList.cs

示例11: 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);
        }
开发者ID:Jackett,项目名称:Jackett,代码行数:26,代码来源:BB.cs

示例12: UpdateService

 public UpdateService(Logger l, IWebClient c, IConfigurationService cfg, ITrayLockService ls)
 {
     logger = l;
     client = c;
     configService = cfg;
     lockService = ls;
 }
开发者ID:nmrcarroll,项目名称:Jackett,代码行数:7,代码来源:UpdateService.cs

示例13: 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;
 }
开发者ID:Jackett,项目名称:Jackett,代码行数:8,代码来源:BaseIndexer.cs

示例14: 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);
        }
开发者ID:Jackett,项目名称:Jackett,代码行数:26,代码来源:PassThePopcorn.cs

示例15: 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
        }
开发者ID:Jackett,项目名称:Jackett,代码行数:25,代码来源:BitHdtv.cs


注:本文中的Jackett.Utils.Clients.IWebClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。