New: Custom Formats

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2022-01-23 23:42:41 -06:00
parent 4a3062deae
commit dbb6ef7664
185 changed files with 6974 additions and 810 deletions
@@ -1,3 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Qualities;
@@ -17,6 +19,8 @@ namespace NzbDrone.Core.Notifications.Webhook
ReleaseTitle = remoteBook.Release.Title;
Indexer = remoteBook.Release.Indexer;
Size = remoteBook.Release.Size;
CustomFormats = remoteBook.CustomFormats?.Select(x => x.Name).ToList();
CustomFormatScore = remoteBook.CustomFormatScore;
}
public string Quality { get; set; }
@@ -25,5 +29,7 @@ namespace NzbDrone.Core.Notifications.Webhook
public string ReleaseTitle { get; set; }
public string Indexer { get; set; }
public long Size { get; set; }
public int CustomFormatScore { get; set; }
public List<string> CustomFormats { get; set; }
}
}