Fixed: Error getting candidates if parsed author is null

pull/1131/head
ta264 3 years ago
parent b8a3f09891
commit 60a49e3a03

@ -172,6 +172,8 @@ namespace NzbDrone.Core.MediaFiles.BookImport.Identification
if (authorTags.Any()) if (authorTags.Any())
{ {
foreach (var authorTag in authorTags) foreach (var authorTag in authorTags)
{
if (authorTag.IsNotNullOrWhiteSpace())
{ {
var possibleAuthors = _authorService.GetCandidates(authorTag); var possibleAuthors = _authorService.GetCandidates(authorTag);
foreach (var author in possibleAuthors) foreach (var author in possibleAuthors)
@ -180,6 +182,7 @@ namespace NzbDrone.Core.MediaFiles.BookImport.Identification
} }
} }
} }
}
return candidateReleases; return candidateReleases;
} }

@ -81,6 +81,7 @@ namespace NzbDrone.Core.MediaFiles.BookImport.Identification
{ {
i++; i++;
_logger.ProgressInfo($"Identifying book {i}/{releases.Count}"); _logger.ProgressInfo($"Identifying book {i}/{releases.Count}");
_logger.Debug($"Identifying book files:\n{localRelease.LocalBooks.Select(x => x.Path).ConcatToString("\n")}");
IdentifyRelease(localRelease, idOverrides, config); IdentifyRelease(localRelease, idOverrides, config);
} }

Loading…
Cancel
Save