Remove speed from SABnzbd downloads - API doesn't provide per-download speed
Some checks failed
Build and Push Docker Image / build (push) Successful in 41s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 45s
CI / Security audit (push) Successful in 58s
CI / Tests & coverage (push) Failing after 1m8s

This commit is contained in:
2026-05-20 00:56:54 +01:00
parent 6362441dd5
commit 63fc370262

View File

@@ -105,9 +105,6 @@ class SABnzbdClient extends DownloadClient {
normalizeDownload(slot, source) {
const isHistory = source === 'history';
// 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',
@@ -167,7 +164,6 @@ class SABnzbdClient extends DownloadClient {
progress: Math.round(progress),
size: Math.round(size),
downloaded: Math.round(downloaded),
speed: slot.kbpersec ? slot.kbpersec * 1024 : 0, // Convert KB/s to bytes/s
eta: this.calculateEta(slot.timeleft || slot.eta),
category: slot.cat || undefined,
tags: slot.labels ? (Array.isArray(slot.labels) ? slot.labels : slot.labels.split(',')).filter(tag => tag && tag.trim()) : [],