Jackett/src/Jackett.Common/Indexers/AlphaRatio.cs

51 lines
2.5 KiB
C#
Raw Normal View History

using Jackett.Indexers.Abstract;
using Jackett.Models;
Feature/netcore preparation (#2035) * Move to use package reference for restoring nuget packages. * Return a task result for this async method. * Update to a supported version of the .NET Framework. This also has the side effect of allowing us to automatically generate our binding redirects on build. * Set the solution to target VS2017 * Update test solution csproj file to support being built through MSBuild 15 * Move to use package reference for restoring nuget packages. * Return a task result for this async method. * Update to a supported version of the .NET Framework. This also has the side effect of allowing us to automatically generate our binding redirects on build. * Set the solution to target VS2017 * Update test solution csproj file to support being built through MSBuild 15 * DateTimeRoutines does not have Nuget packages that support .NET Standard (and therefore .NET Core). We will have to include them for now until we can get rid of this dependency. * Move the interfaces into their own files. This will be useful when we share them between the .NET Core and .NET Framework WebAPI * Stage services that need to point to the new interface namespace. * Update CurlSharp to fix memory leak issue and support better runtime compatibility with OSX and Linux * Start spliting some interfaces into their own files - this will help by allowing us to split them out in the future into a seperate project so the actual implementations can stay within their respective architectures when required
2017-10-29 10:19:09 +00:00
using Jackett.Services.Interfaces;
using Jackett.Utils.Clients;
using NLog;
namespace Jackett.Indexers
{
public class AlphaRatio : GazelleTracker
{
public AlphaRatio(IIndexerConfigurationService configService, WebClient webClient, Logger logger, IProtectionService protectionService)
: base(name: "AlphaRatio",
desc: "AlphaRatio (AR) is a Private Torrent Tracker for 0DAY / GENERAL",
link: "https://alpharatio.cc/",
configService: configService,
logger: logger,
protectionService: protectionService,
webClient: webClient
)
{
Language = "en-us";
Type = "private";
AddCategoryMapping(1, TorznabCatType.TVSD, "TvSD");
AddCategoryMapping(2, TorznabCatType.TVHD, "TvHD");
AddCategoryMapping(3, TorznabCatType.TVSD, "TvDVDRip");
AddCategoryMapping(4, TorznabCatType.TVSD, "TvPackSD");
AddCategoryMapping(5, TorznabCatType.TVHD, "TvPackHD");
AddCategoryMapping(6, TorznabCatType.MoviesSD, "MovieSD");
AddCategoryMapping(7, TorznabCatType.MoviesHD, "MovieHD");
AddCategoryMapping(8, TorznabCatType.MoviesSD, "MoviePackSD");
AddCategoryMapping(9, TorznabCatType.MoviesHD, "MoviePackHD");
AddCategoryMapping(10, TorznabCatType.XXX, "MovieXXX");
AddCategoryMapping(11, TorznabCatType.AudioVideo, "MviD");
AddCategoryMapping(12, TorznabCatType.PCGames, "GamesPC");
AddCategoryMapping(13, TorznabCatType.ConsoleXbox, "GamesxBox");
AddCategoryMapping(14, TorznabCatType.ConsolePS3, "GamesPS3");
AddCategoryMapping(15, TorznabCatType.ConsoleWii, "GamesWii");
AddCategoryMapping(16, TorznabCatType.PC0day, "AppsPC");
AddCategoryMapping(17, TorznabCatType.PCMac, "AppsMAC");
AddCategoryMapping(18, TorznabCatType.PC0day, "AppsLinux");
AddCategoryMapping(19, TorznabCatType.PCPhoneOther, "AppsMobile");
AddCategoryMapping(20, TorznabCatType.XXX, "0dayXXX");
AddCategoryMapping(21, TorznabCatType.Books, "eBook");
AddCategoryMapping(22, TorznabCatType.AudioAudiobook, "AudioBook");
AddCategoryMapping(23, TorznabCatType.AudioOther, "Music");
AddCategoryMapping(24, TorznabCatType.Other, "Misc");
}
}
}