Add logging to debug SABnzbd speed field in slot data
All checks were successful
Build and Push Docker Image / build (push) Successful in 42s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 52s
CI / Security audit (push) Successful in 1m9s
CI / Tests & coverage (push) Successful in 1m22s

This commit is contained in:
2026-05-20 00:54:26 +01:00
parent 76f9e87b44
commit 6362441dd5

View File

@@ -105,10 +105,9 @@ class SABnzbdClient extends DownloadClient {
normalizeDownload(slot, source) {
const isHistory = source === 'history';
// Log slot structure for debugging speed field
logToFile(`[SABnzbd:${this.name}] Slot keys: ${Object.keys(slot).join(', ')}`);
logToFile(`[SABnzbd:${this.name}] Slot speed-related fields: kbpersec=${slot.kbpersec}, speed=${slot.speed}`);
// Log slot data for debugging speed field
logToFile(`[SABnzbd:${this.name}] Slot data: ${JSON.stringify({ nzo_id: slot.nzo_id, kbpersec: slot.kbpersec, speed: slot.speed, status: slot.status })}`);
// Map SABnzbd statuses to normalized status
const statusMap = {
'Downloading': 'Downloading',