From a5977f2752dfbcb3971b130d0759a5e369c3cdfd Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 16 Jun 2018 21:32:42 +0200 Subject: [PATCH] Fixed: Manual Import not using Release Group during renamer. [develop only] fixes #2612 --- .../MediaFiles/EpisodeImport/Manual/ManualImportService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeImport/Manual/ManualImportService.cs b/src/NzbDrone.Core/MediaFiles/EpisodeImport/Manual/ManualImportService.cs index 198333441..bb80a0569 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeImport/Manual/ManualImportService.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeImport/Manual/ManualImportService.cs @@ -9,6 +9,7 @@ using NzbDrone.Common.Instrumentation.Extensions; using NzbDrone.Core.DecisionEngine; using NzbDrone.Core.Download; using NzbDrone.Core.Download.TrackedDownloads; +using NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation; using NzbDrone.Core.MediaFiles.MediaInfo; using NzbDrone.Core.Messaging.Commands; using NzbDrone.Core.Messaging.Events; @@ -33,6 +34,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual private readonly IEpisodeService _episodeService; private readonly IVideoFileInfoReader _videoFileInfoReader; private readonly IImportApprovedEpisodes _importApprovedEpisodes; + private readonly IAugmentingService _augmentingService; private readonly ITrackedDownloadService _trackedDownloadService; private readonly IDownloadedEpisodesImportService _downloadedEpisodesImportService; private readonly IEventAggregator _eventAggregator; @@ -45,6 +47,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual ISeriesService seriesService, IEpisodeService episodeService, IVideoFileInfoReader videoFileInfoReader, + IAugmentingService augmentingService, IImportApprovedEpisodes importApprovedEpisodes, ITrackedDownloadService trackedDownloadService, IDownloadedEpisodesImportService downloadedEpisodesImportService, @@ -58,6 +61,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual _seriesService = seriesService; _episodeService = episodeService; _videoFileInfoReader = videoFileInfoReader; + _augmentingService = augmentingService; _importApprovedEpisodes = importApprovedEpisodes; _trackedDownloadService = trackedDownloadService; _downloadedEpisodesImportService = downloadedEpisodesImportService; @@ -263,6 +267,8 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual //TODO: Cleanup non-tracked downloads + localEpisode = _augmentingService.Augment(localEpisode, false); + var importDecision = new ImportDecision(localEpisode); if (file.DownloadId.IsNullOrWhiteSpace())