Jackett/src/Jackett.Common/Indexers/BrokenStones.cs

56 lines
2.2 KiB
C#
Raw Normal View History

using System.Diagnostics.CodeAnalysis;
2020-02-09 02:35:16 +00:00
using Jackett.Common.Indexers.Abstract;
using Jackett.Common.Models;
using Jackett.Common.Services.Interfaces;
using Jackett.Common.Utils.Clients;
using NLog;
2017-05-19 15:56:16 +00:00
namespace Jackett.Common.Indexers
2017-05-19 15:56:16 +00:00
{
[ExcludeFromCodeCoverage]
public class BrokenStones : GazelleTracker
2017-05-19 15:56:16 +00:00
{
public override string Id => "brokenstones";
public override string Name => "BrokenStones";
public override string Description => "Broken Stones is a Private site for MacOS and iOS APPS / GAMES";
2023-03-17 23:59:32 +00:00
public override string SiteLink { get; protected set; } = "https://brokenstones.is/";
public override string[] LegacySiteLinks => new[]
{
2023-03-17 23:59:32 +00:00
"https://brokenstones.club/",
"https://broken-stones.club/"
};
public override string Language => "en-US";
public override string Type => "private";
public override TorznabCapabilities TorznabCaps => SetCapabilities();
public BrokenStones(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps,
ICacheService cs)
: base(configService: configService,
client: wc,
logger: l,
p: ps,
cs: cs,
supportsFreeleechTokens: true,
has2Fa: true)
2017-05-19 15:56:16 +00:00
{
}
private TorznabCapabilities SetCapabilities()
{
var caps = new TorznabCapabilities();
caps.Categories.AddCategoryMapping(1, TorznabCatType.PCMac, "MacOS Apps");
caps.Categories.AddCategoryMapping(2, TorznabCatType.PCMac, "MacOS Games");
caps.Categories.AddCategoryMapping(3, TorznabCatType.PCMobileiOS, "iOS Apps");
caps.Categories.AddCategoryMapping(4, TorznabCatType.PCMobileiOS, "iOS Games");
caps.Categories.AddCategoryMapping(5, TorznabCatType.Other, "Graphics");
caps.Categories.AddCategoryMapping(6, TorznabCatType.Audio, "Audio");
caps.Categories.AddCategoryMapping(7, TorznabCatType.Other, "Tutorials");
caps.Categories.AddCategoryMapping(8, TorznabCatType.Other, "Other");
return caps;
2017-05-19 15:56:16 +00:00
}
}
}