2020-09-29 03:05:47 +00:00
|
|
|
using System.Collections.Generic;
|
2020-05-03 23:35:52 +00:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2020-09-29 03:05:47 +00:00
|
|
|
using System.Threading.Tasks;
|
2020-02-09 02:35:16 +00:00
|
|
|
using Jackett.Common.Indexers.Abstract;
|
2018-03-10 08:05:56 +00:00
|
|
|
using Jackett.Common.Models;
|
|
|
|
using Jackett.Common.Services.Interfaces;
|
2020-04-04 06:56:51 +00:00
|
|
|
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
|
|
|
{
|
2020-05-03 23:35:52 +00:00
|
|
|
[ExcludeFromCodeCoverage]
|
2017-10-25 15:46:23 +00:00
|
|
|
public class AlphaRatio : GazelleTracker
|
2017-04-15 08:45:10 +00:00
|
|
|
{
|
2023-03-09 14:06:12 +00:00
|
|
|
public override string Id => "alpharatio";
|
|
|
|
public override string Name => "AlphaRatio";
|
|
|
|
public override string Description => "AlphaRatio (AR) is a Private Torrent Tracker for 0DAY / GENERAL";
|
|
|
|
public override string SiteLink { get; protected set; } = "https://alpharatio.cc/";
|
|
|
|
public override string Language => "en-US";
|
|
|
|
public override string Type => "private";
|
|
|
|
|
2020-12-11 22:14:21 +00:00
|
|
|
public AlphaRatio(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps,
|
|
|
|
ICacheService cs)
|
2023-03-09 14:06:12 +00:00
|
|
|
: base(
|
2020-04-04 06:56:51 +00:00
|
|
|
caps: new TorznabCapabilities
|
|
|
|
{
|
2020-10-18 20:47:36 +00:00
|
|
|
TvSearchParams = new List<TvSearchParam>
|
|
|
|
{
|
|
|
|
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep
|
|
|
|
},
|
|
|
|
MovieSearchParams = new List<MovieSearchParam>
|
|
|
|
{
|
|
|
|
MovieSearchParam.Q, MovieSearchParam.ImdbId
|
|
|
|
}
|
2020-04-04 06:56:51 +00:00
|
|
|
},
|
|
|
|
configService: configService,
|
|
|
|
client: wc,
|
|
|
|
logger: l,
|
|
|
|
p: ps,
|
2020-12-11 22:14:21 +00:00
|
|
|
cs: cs,
|
2020-04-04 06:56:51 +00:00
|
|
|
supportsFreeleechTokens: true,
|
2023-03-07 18:35:28 +00:00
|
|
|
supportsFreeleechOnly: true,
|
2020-04-04 06:56:51 +00:00
|
|
|
imdbInTags: true)
|
2017-04-15 08:45:10 +00:00
|
|
|
{
|
2020-11-07 00:42:39 +00:00
|
|
|
AddCategoryMapping(1, TorznabCatType.TVSD, "TvSD");
|
|
|
|
AddCategoryMapping(2, TorznabCatType.TVHD, "TvHD");
|
|
|
|
AddCategoryMapping(3, TorznabCatType.TVUHD, "TvUHD");
|
|
|
|
AddCategoryMapping(4, TorznabCatType.TVSD, "TvDVDRip");
|
|
|
|
AddCategoryMapping(5, TorznabCatType.TVSD, "TvPackSD");
|
|
|
|
AddCategoryMapping(6, TorznabCatType.TVHD, "TvPackHD");
|
|
|
|
AddCategoryMapping(7, TorznabCatType.TVUHD, "TvPackUHD");
|
|
|
|
AddCategoryMapping(8, TorznabCatType.MoviesSD, "MovieSD");
|
|
|
|
AddCategoryMapping(9, TorznabCatType.MoviesHD, "MovieHD");
|
|
|
|
AddCategoryMapping(10, TorznabCatType.MoviesUHD, "MovieUHD");
|
|
|
|
AddCategoryMapping(11, TorznabCatType.MoviesSD, "MoviePackSD");
|
|
|
|
AddCategoryMapping(12, TorznabCatType.MoviesHD, "MoviePackHD");
|
|
|
|
AddCategoryMapping(13, TorznabCatType.MoviesUHD, "MoviePackUHD");
|
|
|
|
AddCategoryMapping(14, TorznabCatType.XXX, "MovieXXX");
|
|
|
|
AddCategoryMapping(15, TorznabCatType.MoviesBluRay, "Bluray");
|
|
|
|
AddCategoryMapping(16, TorznabCatType.TVAnime, "AnimeSD");
|
|
|
|
AddCategoryMapping(17, TorznabCatType.TVAnime, "AnimeHD");
|
|
|
|
AddCategoryMapping(18, TorznabCatType.PCGames, "GamesPC");
|
|
|
|
AddCategoryMapping(19, TorznabCatType.ConsoleXBox, "GamesxBox");
|
|
|
|
AddCategoryMapping(20, TorznabCatType.ConsolePS4, "GamesPS");
|
|
|
|
AddCategoryMapping(21, TorznabCatType.ConsoleWii, "GamesNin");
|
|
|
|
AddCategoryMapping(22, TorznabCatType.PC0day, "AppsWindows");
|
|
|
|
AddCategoryMapping(23, TorznabCatType.PCMac, "AppsMAC");
|
|
|
|
AddCategoryMapping(24, TorznabCatType.PC0day, "AppsLinux");
|
|
|
|
AddCategoryMapping(25, TorznabCatType.PCMobileOther, "AppsMobile");
|
|
|
|
AddCategoryMapping(26, TorznabCatType.XXX, "0dayXXX");
|
2018-12-20 13:39:45 +00:00
|
|
|
AddCategoryMapping(27, TorznabCatType.Books, "eBook");
|
|
|
|
AddCategoryMapping(28, TorznabCatType.AudioAudiobook, "AudioBook");
|
|
|
|
AddCategoryMapping(29, TorznabCatType.AudioOther, "Music");
|
|
|
|
AddCategoryMapping(30, TorznabCatType.Other, "Misc");
|
2017-04-15 08:45:10 +00:00
|
|
|
}
|
2018-04-17 09:03:40 +00:00
|
|
|
|
2020-09-29 03:05:47 +00:00
|
|
|
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
|
|
|
|
{
|
|
|
|
var releases = await base.PerformQuery(query);
|
|
|
|
foreach (var release in releases)
|
|
|
|
{
|
|
|
|
release.MinimumRatio = 1;
|
|
|
|
release.MinimumSeedTime = 259200;
|
|
|
|
}
|
|
|
|
return releases;
|
|
|
|
}
|
2017-04-15 08:45:10 +00:00
|
|
|
}
|
|
|
|
}
|