1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-03-05 13:20:20 -05:00

Temporary mock data while services isn't updated with new endpoint.

This commit is contained in:
Taloth Saldono
2017-05-06 21:51:53 +02:00
parent 7b4cb4145d
commit 97c3863efb

View File

@@ -29,6 +29,17 @@ namespace NzbDrone.Core.SkyhookNotifications
public List<SkyhookNotification> GetNotifications()
{
return new List<SkyhookNotification>
{
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<SkyhookNotification>();
}
}*/
}
}
}