mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-26 22:46:37 -04:00
Cleanup Conflicts in Sonarr/Lidarr Pulls
Co-Authored-By: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com>
This commit is contained in:
@@ -82,7 +82,7 @@ namespace NzbDrone.Core.Download
|
||||
}
|
||||
catch (DownloadClientRejectedReleaseException)
|
||||
{
|
||||
_logger.Trace("Release {0} rejected by download client, possible duplicate.", remoteAlbum);
|
||||
_logger.Trace("Release {0} rejected by download client, possible duplicate.", remoteBook);
|
||||
throw;
|
||||
}
|
||||
catch (ReleaseDownloadException ex)
|
||||
@@ -100,16 +100,16 @@ namespace NzbDrone.Core.Download
|
||||
throw;
|
||||
}
|
||||
|
||||
var albumGrabbedEvent = new BookGrabbedEvent(remoteBook);
|
||||
albumGrabbedEvent.DownloadClient = downloadClient.Name;
|
||||
var bookGrabbedEvent = new BookGrabbedEvent(remoteBook);
|
||||
bookGrabbedEvent.DownloadClient = downloadClient.Name;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(downloadClientId))
|
||||
{
|
||||
albumGrabbedEvent.DownloadId = downloadClientId;
|
||||
bookGrabbedEvent.DownloadId = downloadClientId;
|
||||
}
|
||||
|
||||
_logger.ProgressInfo("Report sent to {0}. {1}", downloadClient.Definition.Name, downloadTitle);
|
||||
_eventAggregator.PublishEvent(albumGrabbedEvent);
|
||||
_eventAggregator.PublishEvent(bookGrabbedEvent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user