mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
some changes to unmapped view
This commit is contained in:
parent
16fcda18c3
commit
bfef6166f5
7 changed files with 31 additions and 16 deletions
|
@ -58,19 +58,19 @@ namespace NzbDrone.Core.Providers
|
|||
return _sonioRepo.Exists<Series>(s => s.SeriesId == seriesId && (QualityTypes)s.Quality == quality);
|
||||
}
|
||||
|
||||
public List<String> GetUnmappedFolders()
|
||||
public Dictionary<Guid, String> GetUnmappedFolders()
|
||||
{
|
||||
Logger.Debug("Generating list of unmapped folders");
|
||||
if (String.IsNullOrEmpty(_config.SeriesRoot))
|
||||
throw new InvalidOperationException("TV Series folder is not configured yet.");
|
||||
|
||||
var results = new List<String>();
|
||||
var results = new Dictionary<Guid, String>();
|
||||
foreach (string seriesFolder in _diskProvider.GetDirectories(_config.SeriesRoot))
|
||||
{
|
||||
var cleanPath = Parser.NormalizePath(new DirectoryInfo(seriesFolder).FullName);
|
||||
if (!_sonioRepo.Exists<Series>(s => s.Path == cleanPath))
|
||||
{
|
||||
results.Add(cleanPath);
|
||||
results.Add(Guid.NewGuid(), cleanPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue