diff --git a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs index e7286af7d..2ec79c0f0 100644 --- a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs +++ b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs @@ -24,7 +24,7 @@ namespace NzbDrone.Core.IndexerVersions public class IndexerDefinitionUpdateService : IIndexerDefinitionUpdateService, IExecute { private const int DEFINITION_VERSION = 1; - private readonly List _defintionBlacklist = new List() { "aither", "animeworld", "blutopia", "beyond-hd", "beyond-hd-oneurl", "hdbits" }; + private readonly List _defintionBlacklist = new List() { "aither", "animeworld", "blutopia", "beyond-hd", "beyond-hd-oneurl", "hdbits", "shareisland" }; private readonly IHttpClient _httpClient; private readonly IAppFolderInfo _appFolderInfo; diff --git a/src/NzbDrone.Core/Indexers/Definitions/ShareIsland.cs b/src/NzbDrone.Core/Indexers/Definitions/ShareIsland.cs new file mode 100644 index 000000000..df99ec6bc --- /dev/null +++ b/src/NzbDrone.Core/Indexers/Definitions/ShareIsland.cs @@ -0,0 +1,57 @@ +using System.Collections.Generic; +using NLog; +using NzbDrone.Common.Http; +using NzbDrone.Core.Configuration; +using NzbDrone.Core.Indexers.Definitions.UNIT3D; +using NzbDrone.Core.Messaging.Events; + +namespace NzbDrone.Core.Indexers.Definitions +{ + public class ShareIsland : Unit3dBase + { + public override string Name => "ShareIsland"; + public override string BaseUrl => "https://shareisland.org/"; + public override string Description => "A general italian tracker"; + public override string Language => "it-it"; + public override IndexerPrivacy Privacy => IndexerPrivacy.Private; + + public ShareIsland(IHttpClient httpClient, IEventAggregator eventAggregator, IIndexerStatusService indexerStatusService, IConfigService configService, Logger logger) + : base(httpClient, eventAggregator, indexerStatusService, configService, logger) + { + } + + protected override IndexerCapabilities SetCapabilities() + { + var caps = new IndexerCapabilities + { + TvSearchParams = new List + { + TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep, TvSearchParam.ImdbId, TvSearchParam.TvdbId + }, + MovieSearchParams = new List + { + MovieSearchParam.Q, MovieSearchParam.ImdbId, MovieSearchParam.TmdbId + }, + MusicSearchParams = new List + { + MusicSearchParam.Q + }, + BookSearchParams = new List + { + BookSearchParam.Q + } + }; + + caps.Categories.AddCategoryMapping(1, NewznabStandardCategory.Movies, "Movie"); + caps.Categories.AddCategoryMapping(2, NewznabStandardCategory.TV, "Serie TV"); + caps.Categories.AddCategoryMapping(15, NewznabStandardCategory.BooksEBook, "Ebook"); + caps.Categories.AddCategoryMapping(17, NewznabStandardCategory.BooksMags, "Riviste e Giornali"); + caps.Categories.AddCategoryMapping(19, NewznabStandardCategory.XXX, "XXX"); + caps.Categories.AddCategoryMapping(3, NewznabStandardCategory.Audio, "Music"); + caps.Categories.AddCategoryMapping(7, NewznabStandardCategory.PCGames, "Games"); + caps.Categories.AddCategoryMapping(23, NewznabStandardCategory.PC, "Software"); + + return caps; + } + } +}