2020-05-03 23:35:52 +00:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
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;
|
|
|
|
using Jackett.Common.Utils.Clients;
|
2017-10-29 06:21:18 +00:00
|
|
|
using NLog;
|
2017-05-19 15:56:16 +00:00
|
|
|
|
2018-03-10 08:05:56 +00:00
|
|
|
namespace Jackett.Common.Indexers
|
2017-05-19 15:56:16 +00:00
|
|
|
{
|
2020-05-03 23:35:52 +00:00
|
|
|
[ExcludeFromCodeCoverage]
|
2017-07-03 05:15:47 +00:00
|
|
|
public class BrokenStones : GazelleTracker
|
2017-05-19 15:56:16 +00:00
|
|
|
{
|
2023-03-09 14:06:12 +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/";
|
2023-03-09 14:06:12 +00:00
|
|
|
public override string[] LegacySiteLinks => new[]
|
|
|
|
{
|
2023-03-17 23:59:32 +00:00
|
|
|
"https://brokenstones.club/",
|
|
|
|
"https://broken-stones.club/"
|
2023-03-03 03:30:06 +00:00
|
|
|
};
|
2023-03-09 14:06:12 +00:00
|
|
|
public override string Language => "en-US";
|
|
|
|
public override string Type => "private";
|
2023-03-03 03:30:06 +00:00
|
|
|
|
2023-03-10 11:20:29 +00:00
|
|
|
public override TorznabCapabilities TorznabCaps => SetCapabilities();
|
|
|
|
|
2020-12-11 22:14:21 +00:00
|
|
|
public BrokenStones(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps,
|
2023-03-10 11:20:29 +00:00
|
|
|
ICacheService cs)
|
|
|
|
: base(configService: configService,
|
2020-04-04 06:56:51 +00:00
|
|
|
client: wc,
|
|
|
|
logger: l,
|
|
|
|
p: ps,
|
2020-12-11 22:14:21 +00:00
|
|
|
cs: cs,
|
2021-11-13 23:23:58 +00:00
|
|
|
supportsFreeleechTokens: true,
|
|
|
|
has2Fa: true)
|
2017-05-19 15:56:16 +00:00
|
|
|
{
|
2023-03-10 11:20:29 +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
|
|
|
}
|
|
|
|
}
|
2017-10-04 05:05:10 +00:00
|
|
|
}
|