Fixed: Download Client not sending on Import or Upgrade notifications (#6908)
* Fixed: Download client and ID for custom scripts
Based on Sonarr Commit eea3419849
* fixup! test
Co-authored-by: Qstick <qstick@gmail.com>
pull/6903/head
parent
3a48f07702
commit
a33b861cec
@ -1,26 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using NzbDrone.Common.Messaging;
|
||||
using NzbDrone.Core.Download;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
|
||||
namespace NzbDrone.Core.MediaFiles.Events
|
||||
{
|
||||
public class MovieDownloadedEvent : IEvent
|
||||
{
|
||||
public LocalMovie Movie { get; private set; }
|
||||
public MovieFile MovieFile { get; private set; }
|
||||
public List<MovieFile> OldFiles { get; private set; }
|
||||
public string DownloadId { get; private set; }
|
||||
|
||||
public MovieDownloadedEvent(LocalMovie movie, MovieFile movieFile, List<MovieFile> oldFiles, DownloadClientItem downloadClientItem)
|
||||
{
|
||||
Movie = movie;
|
||||
MovieFile = movieFile;
|
||||
OldFiles = oldFiles;
|
||||
if (downloadClientItem != null)
|
||||
{
|
||||
DownloadId = downloadClientItem.DownloadId;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue