mirror of https://github.com/Radarr/Radarr
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 @@ namespace NzbDrone.Core.Parser
|
||||||
|
|
||||||
if (result != null)
|
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);
|
Logger.Debug("Language parsed: {0}", result.Language);
|
||||||
|
|
||||||
result.Quality = QualityParser.ParseQuality(title);
|
result.Quality = QualityParser.ParseQuality(title);
|
||||||
|
|
Loading…
Reference in New Issue