refactored Episode, Added Quality Enum

This commit is contained in:
Keivan 2010-09-27 22:01:54 -07:00
commit a49850cc89
12 changed files with 240 additions and 270 deletions

View file

@ -1,7 +1,6 @@
using System.IO;
using System.Linq;
using log4net;
using NzbDrone.Core.Helpers;
using NzbDrone.Core.Repository;
using SubSonic.Repository;
using TvdbLib.Data;
@ -44,7 +43,7 @@ namespace NzbDrone.Core.Providers
foreach (string seriesFolder in _diskProvider.GetDirectories(_config.SeriesRoot))
{
var cleanPath = Disk.CleanPath(new DirectoryInfo(seriesFolder).FullName);
var cleanPath = DiskProvider.CleanPath(new DirectoryInfo(seriesFolder).FullName);
if (!_sonioRepo.Exists<Series>(s => s.Path == cleanPath))
{
_logger.InfoFormat("Folder '{0} isn't mapped to a series in the database. Trying to map it.'", cleanPath);