From 7a1c1064ae0ebd7bfa10fb9b9435649be56d680f Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 9 Nov 2017 22:10:24 +0100 Subject: [PATCH] Fallback to parsing Series from sub path during Manual Import. --- .../EpisodeImport/Manual/ManualImportService.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeImport/Manual/ManualImportService.cs b/src/NzbDrone.Core/MediaFiles/EpisodeImport/Manual/ManualImportService.cs index ca7484ebc..ea794ea92 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeImport/Manual/ManualImportService.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeImport/Manual/ManualImportService.cs @@ -150,6 +150,16 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Manual } } + if (series == null) + { + var relativeParseInfo = Parser.Parser.ParsePath(relativeFile); + + if (relativeParseInfo != null) + { + series = _seriesService.FindByTitle(relativeParseInfo.SeriesTitle); + } + } + if (series == null) { var localEpisode = new LocalEpisode();