Remove extension from ReleaseTitle.

Fixes #2118
This commit is contained in:
Taloth Saldono 2017-08-13 12:27:12 +02:00
parent 35f911286f
commit c70740e3b6
2 changed files with 9 additions and 1 deletions

View File

@ -72,5 +72,13 @@ namespace NzbDrone.Core.Test.ParserTests
Parser.Parser.ParseTitle(title).Quality.Quality.Should().NotBe(Quality.Unknown); Parser.Parser.ParseTitle(title).Quality.Quality.Should().NotBe(Quality.Unknown);
Parser.Parser.ParseTitle(title).Quality.QualitySource.Should().Be(QualitySource.Extension); Parser.Parser.ParseTitle(title).Quality.QualitySource.Should().Be(QualitySource.Extension);
} }
[TestCase("Revolution.S01E02.Chained.Heat.mkv", "Revolution.S01E02.Chained.Heat")]
public void should_parse_releasetitle(string path, string releaseTitle)
{
var result = Parser.Parser.ParseTitle(path);
result.ReleaseTitle.Should().Be(releaseTitle);
}
} }
} }

View File

@ -355,7 +355,7 @@ namespace NzbDrone.Core.Parser
Logger.Trace(regex); Logger.Trace(regex);
try try
{ {
var result = ParseMatchCollection(match, title); var result = ParseMatchCollection(match, releaseTitle);
if (result != null) if (result != null)
{ {