Add logging to investigate SABnzbd slot structure for speed field
This commit is contained in:
@@ -104,7 +104,11 @@ class SABnzbdClient extends DownloadClient {
|
|||||||
|
|
||||||
normalizeDownload(slot, source) {
|
normalizeDownload(slot, source) {
|
||||||
const isHistory = source === 'history';
|
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}`);
|
||||||
|
|
||||||
// Map SABnzbd statuses to normalized status
|
// Map SABnzbd statuses to normalized status
|
||||||
const statusMap = {
|
const statusMap = {
|
||||||
'Downloading': 'Downloading',
|
'Downloading': 'Downloading',
|
||||||
|
|||||||
Reference in New Issue
Block a user