1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-20 21:55:03 -04:00

New: Parse original from release name when specified

(cherry picked from commit 88f4016fe0ed768f4206d04479156c45517f15b7)

Closes #10673
This commit is contained in:
Mark McDowall
2024-11-06 20:58:45 -08:00
committed by Bogdan
parent 78c009d6fa
commit 4a2202ed7f
2 changed files with 19 additions and 2 deletions
@@ -537,6 +537,16 @@ namespace NzbDrone.Core.Test.ParserTests
result.Languages.Should().Contain(Language.German);
}
[TestCase("Movie.Title.2025.Original.1080P.WEB.H264-RlsGrp")]
[TestCase("Movie.Title.2025.Orig.1080P.WEB.H264-RlsGrp")]
[TestCase("Movie Title 2025 [HEVC, HDR10, Dolby Vision, WEB-DL 2160p] [Hybrid] 3 XX + Original")]
public void should_parse_original_title_from_release_name(string postTitle)
{
var result = Parser.Parser.ParseMovieTitle(postTitle);
result.Languages.Count.Should().Be(1);
result.Languages.Should().Contain(Language.Original);
}
[TestCase("The.Movie.Name.2023.German.ML.EAC3.720p.NF.WEB.H264-RlsGrp")]
public void should_add_original_language_and_english_to_german_release_with_ml_tag(string postTitle)
{