parent
35f911286f
commit
c70740e3b6
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue