mirror of https://github.com/lidarr/Lidarr
Fixed: Don't process tracked download if RemoteAlbum is null (#716)
Fixes LIDARR-1V4
This commit is contained in:
parent
57df287547
commit
6afece237c
|
@ -50,7 +50,8 @@ namespace NzbDrone.Core.Download
|
|||
|
||||
public void Process(TrackedDownload trackedDownload, bool ignoreWarnings = false)
|
||||
{
|
||||
if (trackedDownload.DownloadItem.Status != DownloadItemStatus.Completed)
|
||||
if (trackedDownload.DownloadItem.Status != DownloadItemStatus.Completed ||
|
||||
trackedDownload.RemoteAlbum == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -80,7 +81,7 @@ namespace NzbDrone.Core.Download
|
|||
return;
|
||||
}
|
||||
|
||||
var artist = trackedDownload.RemoteAlbum?.Artist;
|
||||
var artist = trackedDownload.RemoteAlbum.Artist;
|
||||
|
||||
if (artist == null)
|
||||
{
|
||||
|
|
|
@ -156,6 +156,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads
|
|||
if (trackedDownload.RemoteAlbum == null)
|
||||
{
|
||||
_logger.Trace("No Album found for download '{0}'", trackedDownload.DownloadItem.Title);
|
||||
trackedDownload.Warn("No Album found for download '{0}'", trackedDownload.DownloadItem.Title);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
Loading…
Reference in New Issue