From 97c3863efb3df04e9b26f15982d8fd5659e44af1 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 6 May 2017 21:51:53 +0200 Subject: [PATCH] Temporary mock data while services isn't updated with new endpoint. --- .../SkyhookNotificationProxy.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/SkyhookNotifications/SkyhookNotificationProxy.cs b/src/NzbDrone.Core/SkyhookNotifications/SkyhookNotificationProxy.cs index 3158c531b..82068b8a0 100644 --- a/src/NzbDrone.Core/SkyhookNotifications/SkyhookNotificationProxy.cs +++ b/src/NzbDrone.Core/SkyhookNotifications/SkyhookNotificationProxy.cs @@ -29,6 +29,17 @@ namespace NzbDrone.Core.SkyhookNotifications public List GetNotifications() { + return new List + { + new SkyhookNotification + { + Type = SkyhookNotificationType.UrlBlacklist, + Title = "Nyaa Indexer shut down", + Message = "Official news is that Nyaa shut down and the domain will expire in a few months, therefore the indexer is forcibly disabled in Sonarr. If a substitute comes available you can update the url in the indexer settings.", + RegexMatch = @"://www\.nyaa\.se(/|$)" + } + }; + /* var notificationsRequest = _requestBuilder.Create() .Resource("/notifications") .AddQueryParam("version", BuildInfo.Version) @@ -44,7 +55,7 @@ namespace NzbDrone.Core.SkyhookNotifications { _logger.Warn(ex, "Failed to get information update from {0}", notificationsRequest.Url.Host); return new List(); - } + }*/ } } }