Fixed: Don't repeatedly refresh queue when author deleted

pull/1237/head
ta264 3 years ago
parent 3c4c6b855e
commit 8b19f02ade

@ -56,6 +56,8 @@ namespace NzbDrone.Core.Download.TrackedDownloads
{
var updateCacheItems = _cache.Values.Where(x => x.RemoteBook != null && x.RemoteBook.Books.Any(a => a.Id == bookId)).ToList();
if (updateCacheItems.Any())
{
foreach (var item in updateCacheItems)
{
var parsedBookInfo = Parser.Parser.ParseBookTitle(item.DownloadItem.Title);
@ -69,6 +71,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads
_eventAggregator.PublishEvent(new TrackedDownloadRefreshedEvent(GetTrackedDownloads()));
}
}
public void StopTracking(string downloadId)
{

Loading…
Cancel
Save