New: Add missing properties to Connection Webhook (#6333)

This commit is contained in:
Daniel Martin Gonzalez 2021-05-18 20:41:13 +02:00 committed by GitHub
parent f4718243ed
commit e67d3d3666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -136,6 +136,7 @@ namespace NzbDrone.Core.Notifications.Webhook
{
Id = 1,
Title = "Test Title",
Year = 1970,
FolderPath = "C:\\testpath",
ReleaseDate = "1970-01-01"
},

View File

@ -8,6 +8,7 @@ namespace NzbDrone.Core.Notifications.Webhook
{
public int Id { get; set; }
public string Title { get; set; }
public int Year { get; set; }
public string FilePath { get; set; }
public string ReleaseDate { get; set; }
public string FolderPath { get; set; }
@ -22,6 +23,7 @@ namespace NzbDrone.Core.Notifications.Webhook
{
Id = movie.Id;
Title = movie.Title;
Year = movie.Year;
ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd");
FolderPath = movie.Path;
TmdbId = movie.TmdbId;

View File

@ -17,6 +17,7 @@ namespace NzbDrone.Core.Notifications.Webhook
QualityVersion = movieFile.Quality.Revision.Version;
ReleaseGroup = movieFile.ReleaseGroup;
SceneName = movieFile.SceneName;
IndexerFlags = movieFile.IndexerFlags.ToString();
Size = movieFile.Size;
}
@ -27,6 +28,7 @@ namespace NzbDrone.Core.Notifications.Webhook
public int QualityVersion { get; set; }
public string ReleaseGroup { get; set; }
public string SceneName { get; set; }
public string IndexerFlags { get; set; }
public long Size { get; set; }
}
}