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
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user