mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Blocklist Torrent Hash should prefer getting the hash (DownloadId) from the tracked download item, if available, and fall back to the history item only if the tracked item is unavailable
This commit is contained in:
parent
d2bd9b4849
commit
a872e57429
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ namespace NzbDrone.Core.Blocklisting
|
|||
Indexer = message.Data.GetValueOrDefault("indexer"),
|
||||
Protocol = (DownloadProtocol)Convert.ToInt32(message.Data.GetValueOrDefault("protocol")),
|
||||
Message = message.Message,
|
||||
TorrentInfoHash = message.Data.GetValueOrDefault("torrentInfoHash")
|
||||
TorrentInfoHash = message.TrackedDownload == null ? message.Data.GetValueOrDefault("torrentInfoHash") : message.TrackedDownload.DownloadItem.DownloadId
|
||||
};
|
||||
|
||||
if (Enum.TryParse(message.Data.GetValueOrDefault("indexerFlags"), true, out IndexerFlags flags))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue