mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
Fixed: Parsing of RoDubbed releases as Romanian
This commit is contained in:
parent
89b609a221
commit
42c9e4e3e5
@ -147,6 +147,7 @@ public void should_parse_language_russian(string postTitle)
|
||||
}
|
||||
|
||||
[TestCase("Movie.Title.1994.Romanian.1080p.XviD-LOL")]
|
||||
[TestCase("Movie.Title.1994.1080p.XviD.RoDubbed-LOL")]
|
||||
public void should_parse_language_romanian(string postTitle)
|
||||
{
|
||||
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
|
||||
|
@ -3,7 +3,6 @@
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using Microsoft.Extensions.FileSystemGlobbing;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Common.Instrumentation;
|
||||
@ -19,6 +18,7 @@ public static class LanguageParser
|
||||
(?<german>german\b|videomann|ger[. ]dub)|
|
||||
(?<flemish>flemish)|
|
||||
(?<bulgarian>bgaudio)|
|
||||
(?<romanian>rodubbed)|
|
||||
(?<brazilian>dublado)|
|
||||
(?<greek>greek)|
|
||||
(?<french>\b(?:FR|VO|VFF|VFQ|VFI|VF2|TRUEFRENCH|FRE|FRA)\b)|
|
||||
@ -331,6 +331,11 @@ public static List<Language> ParseLanguages(string title)
|
||||
{
|
||||
languages.Add(Language.Latvian);
|
||||
}
|
||||
|
||||
if (match.Groups["romanian"].Success)
|
||||
{
|
||||
languages.Add(Language.Romanian);
|
||||
}
|
||||
}
|
||||
|
||||
if (!languages.Any())
|
||||
|
Loading…
Reference in New Issue
Block a user