Fixed: Error getting candidates if parsed author is null

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

@ -173,10 +173,13 @@ namespace NzbDrone.Core.MediaFiles.BookImport.Identification
{
foreach (var authorTag in authorTags)
{
var possibleAuthors = _authorService.GetCandidates(authorTag);
foreach (var author in possibleAuthors)
if (authorTag.IsNotNullOrWhiteSpace())
{
candidateReleases.AddRange(GetDbCandidatesByAuthor(localEdition, author, includeExisting));
var possibleAuthors = _authorService.GetCandidates(authorTag);
foreach (var author in possibleAuthors)
{
candidateReleases.AddRange(GetDbCandidatesByAuthor(localEdition, author, includeExisting));
}
}
}
}

@ -81,6 +81,7 @@ namespace NzbDrone.Core.MediaFiles.BookImport.Identification
{
i++;
_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);
}

Loading…
Cancel
Save