mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-20 11:50:51 +02:00
30 lines
829 B
C#
Executable file
30 lines
829 B
C#
Executable file
using System.IO;
|
||
using NzbDrone.Core.Tv;
|
||
using NzbDrone.Core.MediaFiles;
|
||
|
||
namespace NzbDrone.Core.Notifications.Webhook
|
||
{
|
||
public class WebhookMovie
|
||
{
|
||
public int Id { get; set; }
|
||
public string Title { get; set; }
|
||
public string FilePath { get; set; }
|
||
public string ReleaseDate { get; set; }
|
||
public string FolderPath { get; set; }
|
||
|
||
public WebhookMovie() { }
|
||
|
||
public WebhookMovie(Movie movie)
|
||
{
|
||
Id = movie.Id;
|
||
Title = movie.Title;
|
||
ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd");
|
||
FolderPath = movie.Path;
|
||
}
|
||
|
||
public WebhookMovie(Movie movie, MovieFile movieFile) : this(movie)
|
||
{
|
||
FilePath = Path.Combine(movie.Path, movieFile.RelativePath);
|
||
}
|
||
}
|
||
}
|