diff --git a/src/NzbDrone.Core/Datastore/Migration/028_remove_notwhatcd.cs b/src/NzbDrone.Core/Datastore/Migration/028_remove_notwhatcd.cs new file mode 100644 index 000000000..0f3b995aa --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/028_remove_notwhatcd.cs @@ -0,0 +1,14 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration; + +[Migration(028)] +public class remove_notwhatcd : NzbDroneMigrationBase +{ + protected override void MainDbUpgrade() + { + // Remove, site dead + Delete.FromTable("Indexers").Row(new { Implementation = "NotWhatCD" }); + } +} diff --git a/src/NzbDrone.Core/Indexers/Definitions/NotWhatCD.cs b/src/NzbDrone.Core/Indexers/Definitions/NotWhatCD.cs deleted file mode 100644 index bffe54887..000000000 --- a/src/NzbDrone.Core/Indexers/Definitions/NotWhatCD.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System.Collections.Generic; -using NLog; -using NzbDrone.Core.Configuration; -using NzbDrone.Core.Indexers.Definitions.Gazelle; -using NzbDrone.Core.Messaging.Events; - -namespace NzbDrone.Core.Indexers.Definitions; - -public class NotWhatCD : GazelleBase -{ - public override string Name => "notwhat.cd"; - public override string[] IndexerUrls => new[] { "https://notwhat.cd/" }; - public override string Description => "NotWhat.CD (NWCD) is a private Music tracker that arised after the former (WCD) shut down."; - public override IndexerPrivacy Privacy => IndexerPrivacy.Private; - - public NotWhatCD(IIndexerHttpClient 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 - }, - MovieSearchParams = new List - { - MovieSearchParam.Q - }, - MusicSearchParams = new List - { - MusicSearchParam.Q, MusicSearchParam.Artist, MusicSearchParam.Album, MusicSearchParam.Label, MusicSearchParam.Year - }, - BookSearchParams = new List - { - BookSearchParam.Q - } - }; - - caps.Categories.AddCategoryMapping(1, NewznabStandardCategory.Audio, "Music"); - caps.Categories.AddCategoryMapping(2, NewznabStandardCategory.PC, "Applications"); - caps.Categories.AddCategoryMapping(3, NewznabStandardCategory.Books, "E-Books"); - caps.Categories.AddCategoryMapping(4, NewznabStandardCategory.AudioAudiobook, "Audiobooks"); - caps.Categories.AddCategoryMapping(5, NewznabStandardCategory.Movies, "E-Learning Videos"); - caps.Categories.AddCategoryMapping(6, NewznabStandardCategory.TV, "Comedy"); - caps.Categories.AddCategoryMapping(7, NewznabStandardCategory.Books, "Comics"); - - return caps; - } -}