Skip to content

Commit a9d6325

Browse files
committed
return correct hash
1 parent 073296e commit a9d6325

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/qbittorrent/models.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@ func ConvertRealDebridToTorrentInfo(rdTorrent *api.Torrent, cfg *config.QBittorr
182182
name = rdTorrent.ID
183183
}
184184

185-
// Ensure we have a valid hash (use actual hash or ID)
186-
hash := rdTorrent.ID
185+
// Return the actual infohash (torrent.Hash), not Real-Debrid ID
186+
// This matches old implementation and is what Radarr expects
187+
hash := rdTorrent.Hash
187188
if hash == "" {
188-
hash = rdTorrent.Hash
189+
hash = rdTorrent.ID
189190
}
190191

191192
info := TorrentInfo{

0 commit comments

Comments
 (0)