diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs index 92217195c..e0d7c3eea 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs @@ -1,4 +1,6 @@ +using System; using System.Collections.Generic; +using System.Data; using System.Linq; using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Qualities; @@ -21,7 +23,7 @@ public WebhookRelease(QualityModel quality, RemoteMovie remoteMovie) Size = remoteMovie.Release.Size; CustomFormats = remoteMovie.CustomFormats?.Select(x => x.Name).ToList(); CustomFormatScore = remoteMovie.CustomFormatScore; - IndexerFlags = remoteMovie.Release.IndexerFlags; + IndexerFlags = Enum.GetValues(typeof(IndexerFlags)).Cast().Where(r => (remoteMovie.Release.IndexerFlags & r) == r).Select(r => r.ToString()).ToList(); } public string Quality { get; set; } @@ -32,6 +34,6 @@ public WebhookRelease(QualityModel quality, RemoteMovie remoteMovie) public long Size { get; set; } public int CustomFormatScore { get; set; } public List CustomFormats { get; set; } - public IndexerFlags IndexerFlags { get; set; } + public List IndexerFlags { get; set; } } }