mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
parent
35f911286f
commit
c70740e3b6
2 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue