File tree 2 files changed +6
-2
lines changed
NzbDrone.Core.Test/ParserTests
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ public void should_parse_language_chinese(string postTitle)
140
140
}
141
141
142
142
[ TestCase ( "Movie.Title.1994.Russian.1080p.XviD-LOL" ) ]
143
+ [ TestCase ( "Movie.Title.2020.WEB-DLRip.AVC.AC3.EN.RU.ENSub.RUSub-LOL" ) ]
144
+ [ TestCase ( "Movie Title (2020) WEB-DL (720p) Rus-Eng" ) ]
143
145
public void should_parse_language_russian ( string postTitle )
144
146
{
145
147
var result = Parser . Parser . ParseMovieTitle ( postTitle , true ) ;
@@ -388,6 +390,8 @@ public void should_parse_language_slovak(string postTitle)
388
390
[ TestCase ( "Movie.Title.2022.lv.WEBRip.XviD-LOL" ) ]
389
391
[ TestCase ( "Movie.Title.2022.LATVIAN.WEBRip.XviD-LOL" ) ]
390
392
[ TestCase ( "Movie.Title.2022.Latvian.WEBRip.XviD-LOL" ) ]
393
+ [ TestCase ( "Movie.Title.2022.1080p.WEB-DL.DDP5.1.Atmos.H.264.Lat.Eng" ) ]
394
+ [ TestCase ( "Movie.Title.2022.1080p.WEB-DL.LAV.RUS-NPPK" ) ]
391
395
public void should_parse_language_latvian ( string postTitle )
392
396
{
393
397
var result = Parser . Parser . ParseMovieTitle ( postTitle ) ;
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ public static class LanguageParser
22
22
(?<brazilian>dublado)|
23
23
(?<greek>greek)|
24
24
(?<french>\b(?:FR|VO|VF|VFF|VFQ|VFI|VF2|TRUEFRENCH|FRE|FRA)\b)|
25
- (?<russian>\brus \b)|
25
+ (?<russian>\b(?:rus|ru) \b)|
26
26
(?<english>\beng\b)|
27
27
(?<hungarian>\b(?:HUNDUB|HUN)\b)|
28
28
(?<hebrew>\b(?:HebDub|HebDubbed)\b)|
29
29
(?<polish>\b(?:PL\W?DUB|DUB\W?PL|LEK\W?PL|PL\W?LEK)\b)|
30
30
(?<chinese>\[(?:CH[ST]|BIG5|GB)\]|简|繁|字幕)|
31
31
(?<ukrainian>(?:(?:\dx)?UKR))|
32
32
(?<spanish>\b(?:español|castellano)\b)|
33
- (?<latvian>\bLV \b)|
33
+ (?<latvian>\b(?:lat|lav|lv) \b)|
34
34
(?<telugu>\btel\b)|
35
35
(?<vietnamese>\bVIE\b)" ,
36
36
RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . IgnorePatternWhitespace ) ;
You can’t perform that action at this time.
0 commit comments