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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user