2018-03-10 08:05:56 +00:00
|
|
|
|
using Jackett.Common.Indexers.Abstract;
|
|
|
|
|
using Jackett.Common.Models;
|
|
|
|
|
using Jackett.Common.Services.Interfaces;
|
|
|
|
|
using Jackett.Common.Utils.Clients;
|
2017-10-29 06:21:18 +00:00
|
|
|
|
using NLog;
|
2017-04-15 08:45:10 +00:00
|
|
|
|
|
2018-03-10 08:05:56 +00:00
|
|
|
|
namespace Jackett.Common.Indexers
|
2017-04-15 08:45:10 +00:00
|
|
|
|
{
|
2017-10-25 15:46:23 +00:00
|
|
|
|
public class AlphaRatio : GazelleTracker
|
2017-04-15 08:45:10 +00:00
|
|
|
|
{
|
2017-11-05 09:42:03 +00:00
|
|
|
|
public AlphaRatio(IIndexerConfigurationService configService, WebClient webClient, Logger logger, IProtectionService protectionService)
|
2017-04-15 08:45:10 +00:00
|
|
|
|
: base(name: "AlphaRatio",
|
2017-10-25 15:46:23 +00:00
|
|
|
|
desc: "AlphaRatio (AR) is a Private Torrent Tracker for 0DAY / GENERAL",
|
2017-04-15 08:45:10 +00:00
|
|
|
|
link: "https://alpharatio.cc/",
|
2017-07-10 20:58:44 +00:00
|
|
|
|
configService: configService,
|
2017-10-25 15:46:23 +00:00
|
|
|
|
logger: logger,
|
|
|
|
|
protectionService: protectionService,
|
2017-12-05 15:44:47 +00:00
|
|
|
|
webClient: webClient,
|
|
|
|
|
supportsFreeleechTokens: true
|
2017-10-25 15:46:23 +00:00
|
|
|
|
)
|
2017-04-15 08:45:10 +00:00
|
|
|
|
{
|
|
|
|
|
Language = "en-us";
|
|
|
|
|
Type = "private";
|
|
|
|
|
|
2017-10-25 15:46:23 +00:00
|
|
|
|
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");
|
2018-12-18 19:04:48 +00:00
|
|
|
|
AddCategoryMapping(25, TorznabCatType.TVUHD, "TvUHD");
|
|
|
|
|
AddCategoryMapping(26, TorznabCatType.TVUHD, "TvPackUHD");
|
|
|
|
|
AddCategoryMapping(27, TorznabCatType.MoviesUHD, "MovieUHD");
|
|
|
|
|
AddCategoryMapping(28, TorznabCatType.MoviesUHD, "MoviePackUHD");
|
|
|
|
|
AddCategoryMapping(29, TorznabCatType.ConsoleOther, "GamesNin");
|
2017-04-15 08:45:10 +00:00
|
|
|
|
}
|
2018-04-17 09:03:40 +00:00
|
|
|
|
|
|
|
|
|
protected override string GetSearchTerm(TorznabQuery query)
|
|
|
|
|
{
|
|
|
|
|
return query.GetQueryString().Replace(".", " "); // Alpharatio can't handle dots in the searchstr
|
|
|
|
|
}
|
2017-04-15 08:45:10 +00:00
|
|
|
|
}
|
|
|
|
|
}
|