mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Add BrokenStones indexer
This commit is contained in:
@@ -126,9 +126,9 @@ namespace Jackett.Indexers.Abstract
|
|||||||
if (!string.IsNullOrEmpty(artist))
|
if (!string.IsNullOrEmpty(artist))
|
||||||
release.Title += artist + " - ";
|
release.Title += artist + " - ";
|
||||||
release.Title += groupName;
|
release.Title += groupName;
|
||||||
if (!string.IsNullOrEmpty(groupYear))
|
if (!string.IsNullOrEmpty(groupYear) && groupYear != "0")
|
||||||
release.Title += " [" + groupYear + "]";
|
release.Title += " [" + groupYear + "]";
|
||||||
if (!string.IsNullOrEmpty(releaseType))
|
if (!string.IsNullOrEmpty(releaseType) && releaseType != "Unknown")
|
||||||
release.Title += " [" + releaseType + "]";
|
release.Title += " [" + releaseType + "]";
|
||||||
|
|
||||||
release.Description = "";
|
release.Description = "";
|
||||||
@@ -180,7 +180,7 @@ namespace Jackett.Indexers.Abstract
|
|||||||
|
|
||||||
var format = (string)torrent["format"];
|
var format = (string)torrent["format"];
|
||||||
if (!string.IsNullOrEmpty(format))
|
if (!string.IsNullOrEmpty(format))
|
||||||
flags.Add(format);
|
flags.Add(HttpUtility.HtmlDecode(format));
|
||||||
|
|
||||||
var encoding = (string)torrent["encoding"];
|
var encoding = (string)torrent["encoding"];
|
||||||
if (!string.IsNullOrEmpty(encoding))
|
if (!string.IsNullOrEmpty(encoding))
|
||||||
|
34
src/Jackett/Indexers/BrokenStones.cs
Normal file
34
src/Jackett/Indexers/BrokenStones.cs
Normal 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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -185,6 +185,7 @@
|
|||||||
<Compile Include="Indexers\Hardbay.cs" />
|
<Compile Include="Indexers\Hardbay.cs" />
|
||||||
<Compile Include="Indexers\Rarbg.cs" />
|
<Compile Include="Indexers\Rarbg.cs" />
|
||||||
<Compile Include="Indexers\Psytorrents.cs" />
|
<Compile Include="Indexers\Psytorrents.cs" />
|
||||||
|
<Compile Include="Indexers\BrokenStones.cs" />
|
||||||
<Compile Include="Indexers\ShowRSS.cs" />
|
<Compile Include="Indexers\ShowRSS.cs" />
|
||||||
<Compile Include="Indexers\Superbits.cs" />
|
<Compile Include="Indexers\Superbits.cs" />
|
||||||
<Compile Include="Indexers\rutracker.cs" />
|
<Compile Include="Indexers\rutracker.cs" />
|
||||||
|
Reference in New Issue
Block a user