1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-30 19:56:54 +00:00

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.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);
try
{
var result = ParseMatchCollection(match, title);
var result = ParseMatchCollection(match, releaseTitle);
if (result != null)
{