mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
New: Add Languages to Webhook Notifications
(cherry picked from commit e039dc45e267cf717e00c0a49ba637012f37e3d7) Closes #10733
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Languages;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
using NzbDrone.Core.Qualities;
|
||||
|
||||
@@ -22,6 +23,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
Size = remoteMovie.Release.Size;
|
||||
CustomFormats = remoteMovie.CustomFormats?.Select(x => x.Name).ToList();
|
||||
CustomFormatScore = remoteMovie.CustomFormatScore;
|
||||
Languages = remoteMovie.Languages;
|
||||
IndexerFlags = Enum.GetValues(typeof(IndexerFlags)).Cast<IndexerFlags>().Where(r => (remoteMovie.Release.IndexerFlags & r) == r).Select(r => r.ToString()).ToList();
|
||||
}
|
||||
|
||||
@@ -33,6 +35,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
public long Size { get; set; }
|
||||
public int CustomFormatScore { get; set; }
|
||||
public List<string> CustomFormats { get; set; }
|
||||
public List<Language> Languages { get; set; }
|
||||
public List<string> IndexerFlags { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user