diff --git a/src/NzbDrone.Core.Test/IndexerTests/RedactedTests/RedactedFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/RedactedTests/RedactedFixture.cs index f08bc8b1b..335aff721 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/RedactedTests/RedactedFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/RedactedTests/RedactedFixture.cs @@ -47,8 +47,8 @@ namespace NzbDrone.Core.Test.IndexerTests.RedactedTests releaseInfo.Title.Should().Be("Shania Twain - Shania Twain (1993) [Album] [FLAC 24bit Lossless / WEB]"); releaseInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent); - releaseInfo.DownloadUrl.Should().Be("https://redacted.ch/ajax.php?action=download&id=1541452"); - releaseInfo.InfoUrl.Should().Be("https://redacted.ch/torrents.php?id=106951&torrentid=1541452"); + releaseInfo.DownloadUrl.Should().Be("https://redacted.sh/ajax.php?action=download&id=1541452"); + releaseInfo.InfoUrl.Should().Be("https://redacted.sh/torrents.php?id=106951&torrentid=1541452"); releaseInfo.CommentUrl.Should().Be(null); releaseInfo.Indexer.Should().Be(Subject.Definition.Name); releaseInfo.PublishDate.Should().Be(DateTime.Parse("2017-12-11 00:17:53")); diff --git a/src/NzbDrone.Core/Datastore/Migration/080_update_redacted_baseurl.cs b/src/NzbDrone.Core/Datastore/Migration/080_update_redacted_baseurl.cs new file mode 100644 index 000000000..8855571a0 --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/080_update_redacted_baseurl.cs @@ -0,0 +1,14 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(080)] + public class update_redacted_baseurl : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Execute.Sql("UPDATE \"Indexers\" SET \"Settings\" = Replace(\"Settings\", '//redacted.ch', '//redacted.sh') WHERE \"Implementation\" = 'Redacted'"); + } + } +} diff --git a/src/NzbDrone.Core/HealthCheck/Checks/RedactedGazelleCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/RedactedGazelleCheck.cs index 40639d633..2168bcc6f 100644 --- a/src/NzbDrone.Core/HealthCheck/Checks/RedactedGazelleCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/Checks/RedactedGazelleCheck.cs @@ -26,7 +26,7 @@ namespace NzbDrone.Core.HealthCheck.Checks { var definition = (IndexerDefinition)indexer.Definition; - if (definition.Settings is GazelleSettings { BaseUrl: "https://redacted.ch" }) + if (definition.Settings is GazelleSettings { BaseUrl: "https://redacted.sh" or "https://redacted.ch" }) { return new HealthCheck(GetType(), HealthCheckResult.Warning, "You have set up Redacted as a Gazelle indexer, please reconfigure using the Redacted indexer setting"); } diff --git a/src/NzbDrone.Core/Indexers/Redacted/Redacted.cs b/src/NzbDrone.Core/Indexers/Redacted/Redacted.cs index 871e0f8bb..997a16923 100644 --- a/src/NzbDrone.Core/Indexers/Redacted/Redacted.cs +++ b/src/NzbDrone.Core/Indexers/Redacted/Redacted.cs @@ -11,7 +11,7 @@ namespace NzbDrone.Core.Indexers.Redacted { public class Redacted : HttpIndexerBase { - public override string Name => "Redacted.ch"; + public override string Name => "Redacted"; public override DownloadProtocol Protocol => DownloadProtocol.Torrent; public override bool SupportsRss => true; public override bool SupportsSearch => true; diff --git a/src/NzbDrone.Core/Indexers/Redacted/RedactedSettings.cs b/src/NzbDrone.Core/Indexers/Redacted/RedactedSettings.cs index 6fad07bed..f1fb2e3de 100644 --- a/src/NzbDrone.Core/Indexers/Redacted/RedactedSettings.cs +++ b/src/NzbDrone.Core/Indexers/Redacted/RedactedSettings.cs @@ -19,7 +19,7 @@ namespace NzbDrone.Core.Indexers.Redacted public RedactedSettings() { - BaseUrl = "https://redacted.ch"; + BaseUrl = "https://redacted.sh"; Categories = new[] { (int)RedactedCategory.Music