Remove speed from SABnzbd downloads - API doesn't provide per-download speed
Some checks failed
Some checks failed
This commit is contained in:
@@ -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()) : [],
|
||||
|
||||
Reference in New Issue
Block a user