mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-23 22:25:56 -04:00
StyleCop
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using FluentValidation.Results;
|
||||
using NzbDrone.Core.Tv;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
using NzbDrone.Core.Tv;
|
||||
using NzbDrone.Core.Validation;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Webhook
|
||||
@@ -59,10 +59,8 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
{
|
||||
payload.DeletedFiles = message.OldFiles.ConvertAll(x => new WebhookEpisodeFile(x)
|
||||
{
|
||||
Path = Path.Combine(message.Series.Path,
|
||||
x.RelativePath)
|
||||
}
|
||||
);
|
||||
Path = Path.Combine(message.Series.Path, x.RelativePath)
|
||||
});
|
||||
}
|
||||
|
||||
_proxy.SendWebhook(payload, Settings);
|
||||
@@ -158,15 +156,16 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
Path = "C:\\testpath",
|
||||
TvdbId = 1234
|
||||
},
|
||||
Episodes = new List<WebhookEpisode>() {
|
||||
new WebhookEpisode()
|
||||
{
|
||||
Id = 123,
|
||||
EpisodeNumber = 1,
|
||||
SeasonNumber = 1,
|
||||
Title = "Test title"
|
||||
}
|
||||
Episodes = new List<WebhookEpisode>()
|
||||
{
|
||||
new WebhookEpisode()
|
||||
{
|
||||
Id = 123,
|
||||
EpisodeNumber = 1,
|
||||
SeasonNumber = 1,
|
||||
Title = "Test title"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
_proxy.SendWebhook(payload, Settings);
|
||||
|
||||
Reference in New Issue
Block a user