mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
New: Add missing properties to Connection Webhook (#6333)
This commit is contained in:
parent
f4718243ed
commit
e67d3d3666
@ -136,6 +136,7 @@ private ValidationFailure SendWebhookTest()
|
|||||||
{
|
{
|
||||||
Id = 1,
|
Id = 1,
|
||||||
Title = "Test Title",
|
Title = "Test Title",
|
||||||
|
Year = 1970,
|
||||||
FolderPath = "C:\\testpath",
|
FolderPath = "C:\\testpath",
|
||||||
ReleaseDate = "1970-01-01"
|
ReleaseDate = "1970-01-01"
|
||||||
},
|
},
|
||||||
|
@ -8,6 +8,7 @@ public class WebhookMovie
|
|||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
public int Year { get; set; }
|
||||||
public string FilePath { get; set; }
|
public string FilePath { get; set; }
|
||||||
public string ReleaseDate { get; set; }
|
public string ReleaseDate { get; set; }
|
||||||
public string FolderPath { get; set; }
|
public string FolderPath { get; set; }
|
||||||
@ -22,6 +23,7 @@ public WebhookMovie(Movie movie)
|
|||||||
{
|
{
|
||||||
Id = movie.Id;
|
Id = movie.Id;
|
||||||
Title = movie.Title;
|
Title = movie.Title;
|
||||||
|
Year = movie.Year;
|
||||||
ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd");
|
ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd");
|
||||||
FolderPath = movie.Path;
|
FolderPath = movie.Path;
|
||||||
TmdbId = movie.TmdbId;
|
TmdbId = movie.TmdbId;
|
||||||
|
@ -17,6 +17,7 @@ public WebhookMovieFile(MovieFile movieFile)
|
|||||||
QualityVersion = movieFile.Quality.Revision.Version;
|
QualityVersion = movieFile.Quality.Revision.Version;
|
||||||
ReleaseGroup = movieFile.ReleaseGroup;
|
ReleaseGroup = movieFile.ReleaseGroup;
|
||||||
SceneName = movieFile.SceneName;
|
SceneName = movieFile.SceneName;
|
||||||
|
IndexerFlags = movieFile.IndexerFlags.ToString();
|
||||||
Size = movieFile.Size;
|
Size = movieFile.Size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,6 +28,7 @@ public WebhookMovieFile(MovieFile movieFile)
|
|||||||
public int QualityVersion { get; set; }
|
public int QualityVersion { get; set; }
|
||||||
public string ReleaseGroup { get; set; }
|
public string ReleaseGroup { get; set; }
|
||||||
public string SceneName { get; set; }
|
public string SceneName { get; set; }
|
||||||
|
public string IndexerFlags { get; set; }
|
||||||
public long Size { get; set; }
|
public long Size { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user