fix: support all slot name variations in DownloadMatcher to resolve cached SAB history matching (#74)
Build and Push Docker Image / build (push) Successful in 39s
CI / Tests & coverage (push) Has been cancelled
CI / Swagger Validation & Coverage (push) Has been cancelled
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m14s
CI / Security audit (push) Has been cancelled

This commit is contained in:
2026-05-29 14:51:52 +01:00
parent b2aa4f23fa
commit b2a837b173
2 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -290,7 +290,7 @@ async function matchSabSlots(slots, context) {
const matched = [];
for (const slot of slots) {
const nzbName = slot.filename || slot.nzbname;
const nzbName = slot.filename || slot.nzbname || slot.name || slot.nzb_name;
if (!nzbName) continue;
const slotState = getSlotStatusAndSpeed(slot, queueStatus, queueSpeed, queueKbpersec);
@@ -347,7 +347,7 @@ async function matchSabHistory(slots, context) {
const matched = [];
for (const slot of slots) {
const nzbName = slot.name || slot.nzb_name || slot.nzbname;
const nzbName = slot.filename || slot.nzbname || slot.name || slot.nzb_name;
if (!nzbName) continue;
const sabDownloadId = slot.nzo_id || slot.id;