DiskScanProvider.Scan() will log a warning if the path doesn't exist.

This commit is contained in:
Mark McDowall 2011-10-22 12:03:54 -07:00
commit bb5febaade
2 changed files with 33 additions and 3 deletions

View file

@ -58,6 +58,12 @@ namespace NzbDrone.Core.Providers
_mediaFileProvider.DeleteOrphaned();
_mediaFileProvider.RepairLinks();
if (!_diskProvider.FolderExists(path))
{
Logger. Warn("Series folder doesn't exist: {0}", path);
return new List<EpisodeFile>();
}
if (_episodeProvider.GetEpisodeBySeries(series.SeriesId).Count == 0)
{
Logger.Debug("Series {0} has no episodes. skipping", series.Title);