1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-03 13:34:54 +00:00

Fix Search Fail When Cannot Parse a Release

This commit is contained in:
Qstick 2017-10-17 21:07:10 -04:00
parent eaba78ad4a
commit 35eeef3af6

View file

@ -62,6 +62,8 @@ private IEnumerable<DownloadDecision> GetAlbumDecisions(List<ReleaseInfo> report
{
var parsedAlbumInfo = Parser.Parser.ParseAlbumTitle(report.Title);
if (parsedAlbumInfo != null)
{
if (!report.Artist.IsNullOrWhiteSpace())
{
parsedAlbumInfo.ArtistName = report.Artist;
@ -72,7 +74,7 @@ private IEnumerable<DownloadDecision> GetAlbumDecisions(List<ReleaseInfo> report
parsedAlbumInfo.AlbumTitle = report.Album;
}
if (parsedAlbumInfo != null && !parsedAlbumInfo.ArtistName.IsNullOrWhiteSpace())
if (!parsedAlbumInfo.ArtistName.IsNullOrWhiteSpace())
{
var remoteAlbum = _parsingService.Map(parsedAlbumInfo, searchCriteria);
remoteAlbum.Release = report;
@ -92,6 +94,7 @@ private IEnumerable<DownloadDecision> GetAlbumDecisions(List<ReleaseInfo> report
}
}
}
}
catch (Exception e)
{
_logger.Error(e, "Couldn't process release.");