From 1c1b1073b219574ccd4092c490d65c439587011a Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 31 Jul 2024 10:52:17 +0300 Subject: [PATCH] Fixed: Saving indexer flags when manual importing from queue --- .../MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs index b4f62addc..bdb80b22b 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs @@ -97,6 +97,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport episodeFile.ReleaseGroup = localEpisode.ReleaseGroup; episodeFile.ReleaseHash = localEpisode.ReleaseHash; episodeFile.Languages = localEpisode.Languages; + episodeFile.IndexerFlags = localEpisode.IndexerFlags; // Prefer the release type from the download client, folder and finally the file so we have the most accurate information. episodeFile.ReleaseType = localEpisode.DownloadClientEpisodeInfo?.ReleaseType ?? @@ -109,11 +110,6 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport .OrderByDescending(h => h.Date) .FirstOrDefault(h => h.EventType == EpisodeHistoryEventType.Grabbed); - if (Enum.TryParse(grabHistory?.Data.GetValueOrDefault("indexerFlags"), true, out IndexerFlags flags)) - { - episodeFile.IndexerFlags = flags; - } - // Prefer the release type from the grabbed history if (Enum.TryParse(grabHistory?.Data.GetValueOrDefault("releaseType"), true, out ReleaseType releaseType)) { @@ -122,7 +118,6 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport } else { - episodeFile.IndexerFlags = localEpisode.IndexerFlags; episodeFile.ReleaseType = localEpisode.ReleaseType; }