|
|
@ -1,6 +1,7 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Languages;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
|
|
|
|
|
|
|
@ -22,6 +23,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|
|
|
Size = remoteMovie.Release.Size;
|
|
|
|
Size = remoteMovie.Release.Size;
|
|
|
|
CustomFormats = remoteMovie.CustomFormats?.Select(x => x.Name).ToList();
|
|
|
|
CustomFormats = remoteMovie.CustomFormats?.Select(x => x.Name).ToList();
|
|
|
|
CustomFormatScore = remoteMovie.CustomFormatScore;
|
|
|
|
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();
|
|
|
|
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 long Size { get; set; }
|
|
|
|
public int CustomFormatScore { get; set; }
|
|
|
|
public int CustomFormatScore { get; set; }
|
|
|
|
public List<string> CustomFormats { get; set; }
|
|
|
|
public List<string> CustomFormats { get; set; }
|
|
|
|
|
|
|
|
public List<Language> Languages { get; set; }
|
|
|
|
public List<string> IndexerFlags { get; set; }
|
|
|
|
public List<string> IndexerFlags { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|