From eca3776ddd4b12020833967ad9d98daa0117caff Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 9 May 2023 01:13:13 +0300 Subject: [PATCH] Replace UC preset with VC --- .../Datastore/Migration/066_remove_uc.cs | 14 ++++++++++++++ src/NzbDrone.Core/Indexers/Newznab/Newznab.cs | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/NzbDrone.Core/Datastore/Migration/066_remove_uc.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/066_remove_uc.cs b/src/NzbDrone.Core/Datastore/Migration/066_remove_uc.cs new file mode 100644 index 000000000..2a22e5210 --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/066_remove_uc.cs @@ -0,0 +1,14 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(066)] + public class remove_uc : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Delete.FromTable("Indexers").Row(new { Implementation = "Usenet Crawler" }); + } + } +} diff --git a/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs b/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs index 568c34f0f..eea150fa5 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs @@ -50,7 +50,7 @@ namespace NzbDrone.Core.Indexers.Newznab yield return GetDefinition("OZnzb.com", GetSettings("https://api.oznzb.com")); yield return GetDefinition("SimplyNZBs", GetSettings("https://simplynzbs.com")); yield return GetDefinition("Tabula Rasa", GetSettings("https://www.tabula-rasa.pw", apiPath: @"/api/v1/api")); - yield return GetDefinition("Usenet Crawler", GetSettings("https://www.usenet-crawler.com")); + yield return GetDefinition("VeryCouch LazyMuch", GetSettings("https://api.verycouch.com")); } }