1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-03-04 02:28:21 +00:00

Fixed: Don't return warning in title field for rejected downloads

Closes #7663
This commit is contained in:
Stevie Robinson 2025-02-22 21:31:22 +01:00 committed by Mark McDowall
parent 350dea10dd
commit 1fa532dd3e
No known key found for this signature in database

View file

@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Download.TrackedDownloads;
using NzbDrone.Core.Indexers;
@ -32,7 +31,7 @@ public class RejectedImportService : IRejectedImportService
if (indexerSettings == null)
{
trackedDownload.Warn(new TrackedDownloadStatusMessage(importResult.Errors.First(), new List<string>()));
trackedDownload.Warn(new TrackedDownloadStatusMessage(trackedDownload.DownloadItem.Title, importResult.Errors));
return true;
}
@ -48,7 +47,7 @@ public class RejectedImportService : IRejectedImportService
}
else
{
trackedDownload.Warn(new TrackedDownloadStatusMessage(importResult.Errors.First(), new List<string>()));
trackedDownload.Warn(new TrackedDownloadStatusMessage(trackedDownload.DownloadItem.Title, importResult.Errors));
}
return true;