From d28e94868ca28eec667a3d605883a7d9d08f50de Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 17 Jun 2011 20:11:04 -0700 Subject: [PATCH] Parser will remove quotes before trying to get filename from the path. HistoryController - Gets Series from seriesProvider. UpcomingComtroller - Gets Series from seriesProvider. --- NzbDrone.Core.Test/ParserTest.cs | 2 ++ NzbDrone.Core/NzbDrone.Core.csproj | 4 +--- NzbDrone.Core/Parser.cs | 2 +- NzbDrone.Web/Controllers/HistoryController.cs | 14 +++++++------- NzbDrone.Web/Controllers/UpcomingController.cs | 12 +++++++----- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/NzbDrone.Core.Test/ParserTest.cs b/NzbDrone.Core.Test/ParserTest.cs index 27e5a8309..0958a65b1 100644 --- a/NzbDrone.Core.Test/ParserTest.cs +++ b/NzbDrone.Core.Test/ParserTest.cs @@ -38,6 +38,8 @@ namespace NzbDrone.Core.Test [TestCase("The.Office.S03E115.DVDRip.XviD-OSiTV", "The.Office", 3, 115)] [TestCase(@"Parks and Recreation - S02E21 - 94 Meetings - 720p TV.mkv", "Parks and Recreation", 2, 21)] [TestCase(@"24-7 Penguins-Capitals- Road to the NHL Winter Classic - S01E03 - Episode 3.mkv", "24-7 Penguins-Capitals- Road to the NHL Winter Classic", 1, 3)] + [TestCase("Adventure.Inc.S03E19.DVDRip.\"XviD\"-OSiTV", "Adventure.Inc", 3, 19)] + [TestCase("C:/Test/TV/Chuck.4x05.HDTV.XviD-LOL", "Chuck", 4, 5)] public void episode_parse(string postTitle, string title, int season, int episode) { var result = Parser.ParseEpisodeInfo(postTitle); diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj index 7a891636b..7025f290c 100644 --- a/NzbDrone.Core/NzbDrone.Core.csproj +++ b/NzbDrone.Core/NzbDrone.Core.csproj @@ -305,9 +305,7 @@ - - - +