mirror of
https://github.com/Radarr/Radarr
synced 2024-12-28 02:40:01 +00:00
This commit is contained in:
parent
f184fc2827
commit
4d8a270170
2 changed files with 10 additions and 4 deletions
|
@ -89,6 +89,12 @@ public void should_parse_movie_title(string postTitle, string title)
|
|||
Parser.Parser.ParseMovieTitle(postTitle, true).MovieTitle.Should().Be(title);
|
||||
}
|
||||
|
||||
[TestCase("(1995) Ghost in the Shell", "Ghost in the Shell")]
|
||||
public void should_parse_movie_folder_name(string postTitle, string title)
|
||||
{
|
||||
Parser.Parser.ParseMovieTitle(postTitle, true, true).MovieTitle.Should().Be(title);
|
||||
}
|
||||
|
||||
[TestCase("1941.1979.EXTENDED.720p.BluRay.X264-AMIABLE", 1979)]
|
||||
[TestCase("Valana la Legende FRENCH BluRay 720p 2016 kjhlj", 2016)]
|
||||
[TestCase("Der.Soldat.James.German.Bluray.FuckYou.Pso.Why.cant.you.follow.scene.rules.1998", 1998)]
|
||||
|
|
|
@ -848,7 +848,7 @@ private static SeriesTitleInfo GetSeriesTitleInfo(string title)
|
|||
|
||||
private static ParsedMovieInfo ParseMovieMatchCollection(MatchCollection matchCollection)
|
||||
{
|
||||
if (!matchCollection[0].Groups["title"].Success)
|
||||
if (!matchCollection[0].Groups["title"].Success || matchCollection[0].Groups["title"].Value == "(")
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue