Fixed: Files that cannot be parsed, kill bulk import.

Fixes #2979
This commit is contained in:
Leonardo Galli 2018-08-23 22:58:48 +02:00
parent 79e570e571
commit e15225f4fc
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,6 @@ namespace NzbDrone.Api.Movies
}
var parsedTitle = _parsingService.ParseMinimalPathMovieInfo(f.Name);
parsedTitle.ImdbId = Parser.ParseImdbId(parsedTitle.SimpleReleaseTitle);
if (parsedTitle == null)
{
m = new Core.Movies.Movie
@ -105,6 +104,8 @@ namespace NzbDrone.Api.Movies
}
else
{
parsedTitle.ImdbId = Parser.ParseImdbId(parsedTitle.SimpleReleaseTitle);
m = new Core.Movies.Movie
{
Title = parsedTitle.MovieTitle,