mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
Add Multiple Languages
Closes #6385 Closes #6564 Closes #6694 Closes #6463 Co-Authored-By: siankatabg <siankatabg@users.noreply.github.com> Co-Authored-By: tandy1000 <24867509+tandy-1000@users.noreply.github.com> Co-Authored-By: Kristof Mattei <864376+kristof-mattei@users.noreply.github.com> Co-Authored-By: Oleksandr Hulyi <4095184+pamidur@users.noreply.github.com>
This commit is contained in:
@@ -153,6 +153,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
|
||||
[TestCase("Movie.Title.1994.Bulgarian.1080p.XviD-LOL")]
|
||||
[TestCase("Movie.Title.1994.BGAUDIO.1080p.XviD-LOL")]
|
||||
[TestCase("Movie.Title.1994.BG.AUDIO.1080p.XviD-LOL")]
|
||||
public void should_parse_language_bulgarian(string postTitle)
|
||||
{
|
||||
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
|
||||
@@ -306,6 +307,40 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
result.Languages.Should().BeEquivalentTo(Language.Arabic);
|
||||
}
|
||||
|
||||
[TestCase("Movie.Title [1989, BDRip] MVO + DVO + UKR (MVO) + Sub")]
|
||||
[TestCase("Movie.Title (2006) BDRemux 1080p 2xUkr | Sub Ukr")]
|
||||
[TestCase("Movie.Title [1984, BDRip 720p] MVO + MVO + Dub + AVO + 3xUkr")]
|
||||
[TestCase("Movie.Title.2019.UKRAINIAN.WEBRip.x264-VXT")]
|
||||
public void should_parse_language_ukrainian(string postTitle)
|
||||
{
|
||||
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
|
||||
|
||||
result.Languages.Should().BeEquivalentTo(Language.Ukrainian);
|
||||
}
|
||||
|
||||
[TestCase("Movie.Title [1937, BDRip 1080p] Dub UKR/Eng + Sub rus")]
|
||||
[TestCase("Movie.Title.[2003.BDRemux.1080p].Dub.MVO.(2xUkr/Fra).Sub.(Rus/Fra)")]
|
||||
public void should_parse_language_ukrainian_multi(string postTitle)
|
||||
{
|
||||
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
|
||||
|
||||
result.Languages.Should().Contain(Language.Ukrainian);
|
||||
}
|
||||
|
||||
[TestCase("Movie.Title.2019.PERSIAN.WEBRip.x264-VXT")]
|
||||
public void should_parse_language_persian(string postTitle)
|
||||
{
|
||||
var result = Parser.Parser.ParseMovieTitle(postTitle);
|
||||
result.Languages.Should().BeEquivalentTo(Language.Persian);
|
||||
}
|
||||
|
||||
[TestCase("Movie.Title.2019.BENGALI.WEBRip.x264-VXT")]
|
||||
public void should_parse_language_bengali(string postTitle)
|
||||
{
|
||||
var result = Parser.Parser.ParseMovieTitle(postTitle);
|
||||
result.Languages.Should().BeEquivalentTo(Language.Bengali);
|
||||
}
|
||||
|
||||
[TestCase("Movie.Title.en.sub")]
|
||||
[TestCase("Movie Title.eng.sub")]
|
||||
[TestCase("Movie.Title.eng.forced.sub")]
|
||||
|
||||
Reference in New Issue
Block a user