mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Fix Search Fail When Cannot Parse a Release
This commit is contained in:
parent
eaba78ad4a
commit
35eeef3af6
1 changed files with 24 additions and 21 deletions
|
@ -62,6 +62,8 @@ namespace NzbDrone.Core.DecisionEngine
|
||||||
{
|
{
|
||||||
var parsedAlbumInfo = Parser.Parser.ParseAlbumTitle(report.Title);
|
var parsedAlbumInfo = Parser.Parser.ParseAlbumTitle(report.Title);
|
||||||
|
|
||||||
|
if (parsedAlbumInfo != null)
|
||||||
|
{
|
||||||
if (!report.Artist.IsNullOrWhiteSpace())
|
if (!report.Artist.IsNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
parsedAlbumInfo.ArtistName = report.Artist;
|
parsedAlbumInfo.ArtistName = report.Artist;
|
||||||
|
@ -72,7 +74,7 @@ namespace NzbDrone.Core.DecisionEngine
|
||||||
parsedAlbumInfo.AlbumTitle = report.Album;
|
parsedAlbumInfo.AlbumTitle = report.Album;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parsedAlbumInfo != null && !parsedAlbumInfo.ArtistName.IsNullOrWhiteSpace())
|
if (!parsedAlbumInfo.ArtistName.IsNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
var remoteAlbum = _parsingService.Map(parsedAlbumInfo, searchCriteria);
|
var remoteAlbum = _parsingService.Map(parsedAlbumInfo, searchCriteria);
|
||||||
remoteAlbum.Release = report;
|
remoteAlbum.Release = report;
|
||||||
|
@ -92,6 +94,7 @@ namespace NzbDrone.Core.DecisionEngine
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
_logger.Error(e, "Couldn't process release.");
|
_logger.Error(e, "Couldn't process release.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue