mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
Fix when MovieTitle is the empty string (should not occur, but what evs)
Fixes #1389
This commit is contained in:
parent
ef57882291
commit
b26a036eed
@ -405,8 +405,13 @@ public static ParsedMovieInfo ParseMovieTitle(string title, bool isDir = false)
|
||||
|
||||
if (result != null)
|
||||
{
|
||||
var languageTitle = simpleTitle;
|
||||
if (result.MovieTitle.IsNotNullOrWhiteSpace() )
|
||||
{
|
||||
languageTitle = simpleTitle.Replace(result.MovieTitle, "A Movie");
|
||||
}
|
||||
|
||||
result.Language = LanguageParser.ParseLanguage(simpleTitle.Replace(result.MovieTitle, "A Movie"));
|
||||
result.Language = LanguageParser.ParseLanguage(languageTitle);
|
||||
Logger.Debug("Language parsed: {0}", result.Language);
|
||||
|
||||
result.Quality = QualityParser.ParseQuality(title);
|
||||
|
Loading…
Reference in New Issue
Block a user