mirror of
https://github.com/Radarr/Radarr
synced 2025-02-25 07:32:56 +00:00
Update notification logos (#804)
This commit is contained in:
parent
9f2fcebc24
commit
7d6a518f30
4 changed files with 6 additions and 6 deletions
|
@ -75,8 +75,8 @@ private void SendNotification(string title, string message, RestRequest request,
|
||||||
request.AddParameter("user_credentials", settings.Token);
|
request.AddParameter("user_credentials", settings.Token);
|
||||||
request.AddParameter("notification[title]", title);
|
request.AddParameter("notification[title]", title);
|
||||||
request.AddParameter("notification[long_message]", message);
|
request.AddParameter("notification[long_message]", message);
|
||||||
request.AddParameter("notification[source_name]", "Sonarr");
|
request.AddParameter("notification[source_name]", "Radarr");
|
||||||
request.AddParameter("notification[icon_url]", "https://raw.githubusercontent.com/Sonarr/Sonarr/7818f0c59b787312f0bcbc5c0eafc3c9dd7e5451/Logo/64.png");
|
request.AddParameter("notification[icon_url]", "https://raw.githubusercontent.com/Radarr/Radarr/develop/Logo/64.png");
|
||||||
|
|
||||||
client.ExecuteAndValidate(request);
|
client.ExecuteAndValidate(request);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ public void Notify(MediaBrowserSettings settings, string title, string message)
|
||||||
{
|
{
|
||||||
Name = title,
|
Name = title,
|
||||||
Description = message,
|
Description = message,
|
||||||
ImageUrl = "https://raw.github.com/NzbDrone/NzbDrone/develop/Logo/64.png"
|
ImageUrl = "https://raw.github.com/Radarr/Radarr/develop/Logo/64.png"
|
||||||
}.ToJson());
|
}.ToJson());
|
||||||
|
|
||||||
ProcessRequest(request, settings);
|
ProcessRequest(request, settings);
|
||||||
|
|
|
@ -29,11 +29,11 @@ public void SendNotification(string title, string message, PushalotSettings sett
|
||||||
var client = RestClientFactory.BuildClient(URL);
|
var client = RestClientFactory.BuildClient(URL);
|
||||||
var request = BuildRequest();
|
var request = BuildRequest();
|
||||||
|
|
||||||
request.AddParameter("Source", "Sonarr");
|
request.AddParameter("Source", "Radarr");
|
||||||
|
|
||||||
if (settings.Image)
|
if (settings.Image)
|
||||||
{
|
{
|
||||||
request.AddParameter("Image", "https://raw.githubusercontent.com/Sonarr/Sonarr/develop/Logo/128.png");
|
request.AddParameter("Image", "https://raw.githubusercontent.com/Radarr/Radarr/develop/Logo/128.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
request.AddParameter("Title", title);
|
request.AddParameter("Title", title);
|
||||||
|
|
|
@ -28,7 +28,7 @@ public bool CanHandle(XbmcVersion version)
|
||||||
|
|
||||||
public void Notify(XbmcSettings settings, string title, string message)
|
public void Notify(XbmcSettings settings, string title, string message)
|
||||||
{
|
{
|
||||||
var notification = string.Format("Notification({0},{1},{2},{3})", title, message, settings.DisplayTime * 1000, "https://raw.github.com/Sonarr/Sonarr/develop/Logo/64.png");
|
var notification = string.Format("Notification({0},{1},{2},{3})", title, message, settings.DisplayTime * 1000, "https://raw.github.com/Radarr/Radarr/develop/Logo/64.png");
|
||||||
var command = BuildExecBuiltInCommand(notification);
|
var command = BuildExecBuiltInCommand(notification);
|
||||||
|
|
||||||
SendCommand(settings, command);
|
SendCommand(settings, command);
|
||||||
|
|
Loading…
Reference in a new issue