mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Fixed: Don't process tracked download if RemoteAlbum is null (#716)
Fixes LIDARR-1V4
This commit is contained in:
parent
57df287547
commit
6afece237c
2 changed files with 4 additions and 2 deletions
|
@ -50,7 +50,8 @@ namespace NzbDrone.Core.Download
|
||||||
|
|
||||||
public void Process(TrackedDownload trackedDownload, bool ignoreWarnings = false)
|
public void Process(TrackedDownload trackedDownload, bool ignoreWarnings = false)
|
||||||
{
|
{
|
||||||
if (trackedDownload.DownloadItem.Status != DownloadItemStatus.Completed)
|
if (trackedDownload.DownloadItem.Status != DownloadItemStatus.Completed ||
|
||||||
|
trackedDownload.RemoteAlbum == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -80,7 +81,7 @@ namespace NzbDrone.Core.Download
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var artist = trackedDownload.RemoteAlbum?.Artist;
|
var artist = trackedDownload.RemoteAlbum.Artist;
|
||||||
|
|
||||||
if (artist == null)
|
if (artist == null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -156,6 +156,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads
|
||||||
if (trackedDownload.RemoteAlbum == null)
|
if (trackedDownload.RemoteAlbum == null)
|
||||||
{
|
{
|
||||||
_logger.Trace("No Album found for download '{0}'", trackedDownload.DownloadItem.Title);
|
_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)
|
catch (Exception e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue