1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Treat subbed as unknown language (#5677)

* Subbed releases shouldn't report as different lang

* Add tests for subbed releases

* Remove whitespace
This commit is contained in:
tenshiak
2021-01-25 05:53:15 +01:00
committed by GitHub
parent ceeea9f7c6
commit 3bfb08c3ff
2 changed files with 11 additions and 1 deletions
@@ -173,6 +173,16 @@ namespace NzbDrone.Core.Test.ParserTests
result.Languages.Should().BeEquivalentTo(Language.Polish);
}
[TestCase("Pulp.Fiction.1994.PL-SUB.1080p.XviD-LOL")]
[TestCase("Pulp.Fiction.1994.PLSUB.1080p.XviD-LOL")]
[TestCase("Pulp.Fiction.1994.SUB-PL.1080p.XviD-LOL")]
public void should_parse_language_polish_subbed(string postTitle)
{
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
result.Languages.Should().BeEquivalentTo(Language.Unknown);
}
[TestCase("Pulp.Fiction.1994.Vietnamese.1080p.XviD-LOL")]
public void should_parse_language_vietnamese(string postTitle)
{