From 7f0696c57497ada845a40f7b5f80ace31ec1527f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 31 Aug 2024 15:00:35 -0700 Subject: [PATCH] Fixed: Failing to import any file for series if one has bad encoding Closes #7157 --- .../EpisodeImport/ImportDecisionMaker.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs index d192c72f2..590b0f5d7 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs @@ -119,17 +119,17 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport { ImportDecision decision = null; - var fileEpisodeInfo = Parser.Parser.ParsePath(localEpisode.Path); - - localEpisode.FileEpisodeInfo = fileEpisodeInfo; - localEpisode.Size = _diskProvider.GetFileSize(localEpisode.Path); - localEpisode.ReleaseType = localEpisode.DownloadClientEpisodeInfo?.ReleaseType ?? - localEpisode.FolderEpisodeInfo?.ReleaseType ?? - localEpisode.FileEpisodeInfo?.ReleaseType ?? - ReleaseType.Unknown; - try { + var fileEpisodeInfo = Parser.Parser.ParsePath(localEpisode.Path); + + localEpisode.FileEpisodeInfo = fileEpisodeInfo; + localEpisode.Size = _diskProvider.GetFileSize(localEpisode.Path); + localEpisode.ReleaseType = localEpisode.DownloadClientEpisodeInfo?.ReleaseType ?? + localEpisode.FolderEpisodeInfo?.ReleaseType ?? + localEpisode.FileEpisodeInfo?.ReleaseType ?? + ReleaseType.Unknown; + _aggregationService.Augment(localEpisode, downloadClientItem); if (localEpisode.Episodes.Empty())