diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj index 50bbb1da9..8e5115589 100644 --- a/NzbDrone.Core/NzbDrone.Core.csproj +++ b/NzbDrone.Core/NzbDrone.Core.csproj @@ -202,6 +202,7 @@ + diff --git a/NzbDrone.Core/RootFolders/RootFolderService.cs b/NzbDrone.Core/RootFolders/RootFolderService.cs index b17db5da5..86fd61679 100644 --- a/NzbDrone.Core/RootFolders/RootFolderService.cs +++ b/NzbDrone.Core/RootFolders/RootFolderService.cs @@ -87,6 +87,7 @@ public virtual List GetUnmappedFolders(string path) throw new ArgumentException("Invalid path provided", "path"); var results = new List(); + var series = _seriesRepository.All(); if (!_diskProvider.FolderExists(path)) { @@ -96,7 +97,7 @@ public virtual List GetUnmappedFolders(string path) foreach (string seriesFolder in _diskProvider.GetDirectories(path)) { - if (!_seriesRepository.SeriesPathExists(seriesFolder)) + if (!series.Any(s => s.Path == seriesFolder)) { var di = new DirectoryInfo(seriesFolder.Normalize()); results.Add(new UnmappedFolder{ Name = di.Name, Path = di.FullName });