From 810701ad528b1ec37582577baa48533a20fa09b6 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 21 Aug 2017 21:24:15 -0700 Subject: [PATCH] Parse path in ParseModule Closes #358 --- src/NzbDrone.Api/Parse/ParseModule.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Api/Parse/ParseModule.cs b/src/NzbDrone.Api/Parse/ParseModule.cs index df36307ff..266f66eb4 100644 --- a/src/NzbDrone.Api/Parse/ParseModule.cs +++ b/src/NzbDrone.Api/Parse/ParseModule.cs @@ -1,5 +1,6 @@ using NzbDrone.Api.Episodes; using NzbDrone.Api.Series; +using NzbDrone.Common.Extensions; using NzbDrone.Core.Parser; namespace NzbDrone.Api.Parse @@ -18,7 +19,8 @@ namespace NzbDrone.Api.Parse private ParseResource Parse() { var title = Request.Query.Title.Value as string; - var parsedEpisodeInfo = Parser.ParseTitle(title); + var path = Request.Query.Path.Value as string; + var parsedEpisodeInfo = path.IsNotNullOrWhiteSpace() ? Parser.ParsePath(path) : Parser.ParseTitle(title); if (parsedEpisodeInfo == null) {