From b6c04dc2d044f587f09ec01e9b36151c1734fb6d Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 18 Apr 2011 23:37:34 -0700 Subject: [PATCH] project updates --- NzbDrone.Core/Parser.cs | 5 ++--- .../Providers/Indexer/IndexerProviderBase.cs | 6 ++++++ NzbDrone.Web/NzbDrone.Web.csproj | 14 +++----------- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/NzbDrone.Core/Parser.cs b/NzbDrone.Core/Parser.cs index e691f15af..3b1ee69c3 100644 --- a/NzbDrone.Core/Parser.cs +++ b/NzbDrone.Core/Parser.cs @@ -244,11 +244,10 @@ namespace NzbDrone.Core return NormalizeRegex.Replace(title, String.Empty).ToLower(); } - //Note: changing case on path is a problem for running on mono/*nix - //Not going to change the casing any more... Looks Ugly in UI anyways :P + public static string NormalizePath(string path) { - if (String.IsNullOrEmpty(path)) + if (String.IsNullOrWhiteSpace(path)) throw new ArgumentException("Path can not be null or empty"); var info = new FileInfo(path); diff --git a/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs b/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs index a2fa8b6c9..93ef5b2b4 100644 --- a/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs +++ b/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs @@ -107,22 +107,28 @@ namespace NzbDrone.Core.Providers.Indexer if (!_seriesProvider.IsMonitored(parseResult.SeriesId)) { Logger.Debug("{0} is present in the DB but not tracked. skipping.", parseResult.SeriesTitle); + return; } if (!_seriesProvider.QualityWanted(parseResult.SeriesId, parseResult.Quality)) { Logger.Debug("Post doesn't meet the quality requirements [{0}]. skipping.", parseResult.Quality); + return; } if (_seasonProvider.IsIgnored(parseResult.SeriesId, parseResult.SeasonNumber)) { Logger.Debug("Season {0} is currently set to ignore. skipping.", parseResult.SeasonNumber); + return; } if (!_episodeProvider.IsNeeded(parseResult)) { Logger.Debug("Episode {0} is not needed. skipping.", parseResult); + return; } + + //Should probably queue item to download } } diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 192136459..18acc6d0a 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -603,8 +603,9 @@ - - + + + @@ -812,15 +813,6 @@ - False - True - 21704 - / - http://localhost/NzbDrone - False - False - http://localhost:8989 - False True