From 86c5f06c5b28be17ddd408ec79a771d0ad4c1794 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Tue, 2 Feb 2021 21:50:33 -0600 Subject: [PATCH] Fixed: Awesome HD website link updated (#5832) --- .../Files/Indexers/TorrentRss/AwesomeHD.xml | 14 +++++++------- .../Migration/190_update_awesome_hd_link.cs | 16 ++++++++++++++++ .../Indexers/AwesomeHD/AwesomeHDSettings.cs | 2 +- 3 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 src/NzbDrone.Core/Datastore/Migration/190_update_awesome_hd_link.cs diff --git a/src/NzbDrone.Core.Test/Files/Indexers/TorrentRss/AwesomeHD.xml b/src/NzbDrone.Core.Test/Files/Indexers/TorrentRss/AwesomeHD.xml index 81b155e407..26dc383294 100644 --- a/src/NzbDrone.Core.Test/Files/Indexers/TorrentRss/AwesomeHD.xml +++ b/src/NzbDrone.Core.Test/Files/Indexers/TorrentRss/AwesomeHD.xml @@ -4,7 +4,7 @@ TV Show Torrents :: Awesome-HD - https://awesome-hd.net/ + https://awesome-hd.club/ RSS feed for all new tv show uploads. en-us Wed, 20 May 2015 07:06:12 +0000 @@ -21,9 +21,9 @@ After a group of people, who meet online, discover a bizarre graphic novel which ]]> Tue, 19 May 2015 22:03:37 +0000 - https://awesome-hd.net/torrents.php?action=download&authkey=redacted&torrent_pass=redacted&id=30689 - https://awesome-hd.net/torrents.php?action=download&authkey=redacted&torrent_pass=redacted&id=30689 - https://awesome-hd.net/torrents.php?id=15436 + https://awesome-hd.club/torrents.php?action=download&authkey=redacted&torrent_pass=redacted&id=30689 + https://awesome-hd.club/torrents.php?action=download&authkey=redacted&torrent_pass=redacted&id=30689 + https://awesome-hd.club/torrents.php?id=15436 tehlarsie @@ -36,9 +36,9 @@ A brilliant and charismatic, yet psychotic serial killer communicates with other ]]> Sun, 17 May 2015 18:21:15 +0000 - https://awesome-hd.net/torrents.php?action=download&authkey=redacted&torrent_pass=redacted&id=30655 - https://awesome-hd.net/torrents.php?action=download&authkey=redacted&torrent_pass=redacted&id=30655 - https://awesome-hd.net/torrents.php?id=15428 + https://awesome-hd.club/torrents.php?action=download&authkey=redacted&torrent_pass=redacted&id=30655 + https://awesome-hd.club/torrents.php?action=download&authkey=redacted&torrent_pass=redacted&id=30655 + https://awesome-hd.club/torrents.php?id=15428 Charlesvain diff --git a/src/NzbDrone.Core/Datastore/Migration/190_update_awesome_hd_link.cs b/src/NzbDrone.Core/Datastore/Migration/190_update_awesome_hd_link.cs new file mode 100644 index 0000000000..9f348c2a2a --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/190_update_awesome_hd_link.cs @@ -0,0 +1,16 @@ +using FluentMigrator; +using Newtonsoft.Json.Linq; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(190)] + public class update_awesome_hd_link : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Execute.Sql("UPDATE Indexers SET Settings = Replace(Settings, 'https://awesome-hd.net', 'https://awesome-hd.club') WHERE Implementation = 'AwesomeHD';"); + Execute.Sql("UPDATE Indexers SET Settings = Replace(Settings, 'https://awesome-hd.me', 'https://awesome-hd.club') WHERE Implementation = 'AwesomeHD';"); + } + } +} diff --git a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs index fc7af6f94a..3cd7376502 100644 --- a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs +++ b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs @@ -24,7 +24,7 @@ public class AwesomeHDSettings : ITorrentIndexerSettings public AwesomeHDSettings() { - BaseUrl = "https://awesome-hd.me"; + BaseUrl = "https://awesome-hd.club"; MinimumSeeders = 0; MultiLanguages = new List(); RequiredFlags = new List();