mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-29 23:12:39 +01:00
New: Include source path with Webhook import event episode file
This commit is contained in:
parent
c41e3ce1e3
commit
469ab9b163
@ -60,7 +60,10 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|||||||
ApplicationUrl = _configService.ApplicationUrl,
|
ApplicationUrl = _configService.ApplicationUrl,
|
||||||
Series = GetSeries(message.Series),
|
Series = GetSeries(message.Series),
|
||||||
Episodes = episodeFile.Episodes.Value.ConvertAll(x => new WebhookEpisode(x)),
|
Episodes = episodeFile.Episodes.Value.ConvertAll(x => new WebhookEpisode(x)),
|
||||||
EpisodeFile = new WebhookEpisodeFile(episodeFile),
|
EpisodeFile = new WebhookEpisodeFile(episodeFile)
|
||||||
|
{
|
||||||
|
SourcePath = message.SourcePath
|
||||||
|
},
|
||||||
Release = new WebhookGrabbedRelease(message.Release),
|
Release = new WebhookGrabbedRelease(message.Release),
|
||||||
IsUpgrade = message.OldFiles.Any(),
|
IsUpgrade = message.OldFiles.Any(),
|
||||||
DownloadClient = message.DownloadClientInfo?.Name,
|
DownloadClient = message.DownloadClientInfo?.Name,
|
||||||
|
@ -37,6 +37,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|||||||
public long Size { get; set; }
|
public long Size { get; set; }
|
||||||
public DateTime DateAdded { get; set; }
|
public DateTime DateAdded { get; set; }
|
||||||
public WebhookEpisodeFileMediaInfo MediaInfo { get; set; }
|
public WebhookEpisodeFileMediaInfo MediaInfo { get; set; }
|
||||||
|
public string SourcePath { get; set; }
|
||||||
public string RecycleBinPath { get; set; }
|
public string RecycleBinPath { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user