Add BrokenStones indexer

This commit is contained in:
kaso17 2017-05-19 17:56:16 +02:00
parent 805f0f4e0d
commit cc10d9f233
3 changed files with 38 additions and 3 deletions

View File

@ -126,9 +126,9 @@ namespace Jackett.Indexers.Abstract
if (!string.IsNullOrEmpty(artist))
release.Title += artist + " - ";
release.Title += groupName;
if (!string.IsNullOrEmpty(groupYear))
if (!string.IsNullOrEmpty(groupYear) && groupYear != "0")
release.Title += " [" + groupYear + "]";
if (!string.IsNullOrEmpty(releaseType))
if (!string.IsNullOrEmpty(releaseType) && releaseType != "Unknown")
release.Title += " [" + releaseType + "]";
release.Description = "";
@ -180,7 +180,7 @@ namespace Jackett.Indexers.Abstract
var format = (string)torrent["format"];
if (!string.IsNullOrEmpty(format))
flags.Add(format);
flags.Add(HttpUtility.HtmlDecode(format));
var encoding = (string)torrent["encoding"];
if (!string.IsNullOrEmpty(encoding))

View File

@ -0,0 +1,34 @@
using Jackett.Models;
using NLog;
using Jackett.Services;
using Jackett.Utils.Clients;
using Jackett.Indexers.Abstract;
namespace Jackett.Indexers
{
public class BrokenStones : GazelleTracker, IIndexer
{
public BrokenStones(IIndexerManagerService indexerManager, IWebClient webClient, Logger logger, IProtectionService protectionService)
: base(name: "BrokenStones",
desc: null,
link: "https://brokenstones.club/",
indexerManager: indexerManager,
logger: logger,
protectionService: protectionService,
webClient: webClient
)
{
Language = "en-us";
Type = "private";
AddCategoryMapping(1, TorznabCatType.PCMac, "MacOS Apps");
AddCategoryMapping(2, TorznabCatType.PCMac, "MacOS Games");
AddCategoryMapping(3, TorznabCatType.PCPhoneIOS, "iOS Apps");
AddCategoryMapping(4, TorznabCatType.PCPhoneIOS, "iOS Games");
AddCategoryMapping(5, TorznabCatType.Other, "Graphics");
AddCategoryMapping(6, TorznabCatType.Audio, "Audio");
AddCategoryMapping(7, TorznabCatType.Other, "Tutorials");
AddCategoryMapping(8, TorznabCatType.Other, "Other");
}
}
}

View File

@ -185,6 +185,7 @@
<Compile Include="Indexers\Hardbay.cs" />
<Compile Include="Indexers\Rarbg.cs" />
<Compile Include="Indexers\Psytorrents.cs" />
<Compile Include="Indexers\BrokenStones.cs" />
<Compile Include="Indexers\ShowRSS.cs" />
<Compile Include="Indexers\Superbits.cs" />
<Compile Include="Indexers\rutracker.cs" />