|
|
|
@ -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 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|
|
|
|
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<IndexerFlags>().Where(r => (remoteMovie.Release.IndexerFlags & r) == r).Select(r => r.ToString()).ToList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Quality { get; set; }
|
|
|
|
@ -32,6 +34,6 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|
|
|
|
public long Size { get; set; }
|
|
|
|
|
public int CustomFormatScore { get; set; }
|
|
|
|
|
public List<string> CustomFormats { get; set; }
|
|
|
|
|
public IndexerFlags IndexerFlags { get; set; }
|
|
|
|
|
public List<string> IndexerFlags { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|