mirror of
https://github.com/Readarr/Readarr
synced 2025-12-15 04:46:13 +01:00
New: Add import date to upgrads in CustomScript and Webhook connections
Closes #1827
This commit is contained in:
parent
df0a5f004d
commit
d15c42957a
2 changed files with 6 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ public override void OnReleaseImport(BookDownloadMessage message)
|
|||
if (message.OldFiles.Any())
|
||||
{
|
||||
environmentVariables.Add("Readarr_DeletedPaths", string.Join("|", message.OldFiles.Select(e => e.Path)));
|
||||
environmentVariables.Add("Readarr_DeletedDateAdded", string.Join("|", message.OldFiles.Select(e => e.DateAdded)));
|
||||
}
|
||||
|
||||
ExecuteScript(environmentVariables);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Webhook
|
||||
|
|
@ -16,6 +17,8 @@ public WebhookBookFile(BookFile bookFile)
|
|||
QualityVersion = bookFile.Quality.Revision.Version;
|
||||
ReleaseGroup = bookFile.ReleaseGroup;
|
||||
SceneName = bookFile.SceneName;
|
||||
Size = bookFile.Size;
|
||||
DateAdded = bookFile.DateAdded;
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
|
|
@ -24,5 +27,7 @@ public WebhookBookFile(BookFile bookFile)
|
|||
public int QualityVersion { get; set; }
|
||||
public string ReleaseGroup { get; set; }
|
||||
public string SceneName { get; set; }
|
||||
public long Size { get; set; }
|
||||
public DateTime DateAdded { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue