Fixed: Include releases that failed to parse in search results

Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
Mark McDowall
2019-10-07 09:38:11 -07:00
committed by Qstick
parent 649ecd94ea
commit 9216fe28d0
2 changed files with 42 additions and 3 deletions
@@ -153,6 +153,28 @@ namespace NzbDrone.Core.DecisionEngine
decision = new DownloadDecision(remoteBook, new Rejection("Unable to parse release"));
}
}
if (searchCriteria != null)
{
if (parsedAlbumInfo == null)
{
parsedAlbumInfo = new ParsedAlbumInfo
{
Quality = QualityParser.ParseQuality(report.Title, null, 0)
};
}
if (parsedAlbumInfo.ArtistName.IsNullOrWhiteSpace())
{
var remoteAlbum = new RemoteAlbum
{
Release = report,
ParsedAlbumInfo = parsedAlbumInfo
};
decision = new DownloadDecision(remoteAlbum, new Rejection("Unable to parse release"));
}
}
}
catch (Exception e)
{