# SABnzbd in your Mac’s menu bar

Keep an eye on your downloads without opening SABnzbd: what’s downloading and how far along it is, how much is left and when it’ll be done, what finished or failed, and whether a news server has stopped working. Pause everything, pause one job, or slow downloads down from the menu bar.

## What you’ll see

- **Health:** in Details, SABnzbd’s version, or a news server’s error in SABnzbd’s words ("Server fernway reported: 502 Too many connections"), or a folder running out of room: "Low on space for downloads: 150 GB free of 4 TB" when the folder downloads go to, or the one they finish in, is under 5% free, and "Paused: not enough free space" when SABnzbd has paused itself because a folder is full. Any of these turns the health card orange and sends a notification. While downloading is paused it says Paused, with how long is left when you paused for a set time, and stays grey. A failed download never counts as a problem. It turns red once SABnzbd stops answering.
- **Controls:** **Pause**, or **Pause for** 30 minutes, an hour or 3 hours, and **Resume** while paused. If you’ve set **Maximum line speed** in SABnzbd (Config → General), a speed menu limits downloads to 75%, 50% or 25% of it, titled with the limit now.
- **Downloads:** what’s left in the queue and how long SABnzbd expects it to take, what it downloaded today and this month, free space where finished downloads go, and SABnzbd’s version.
- **Speed:** the download speed over the last 5 hours. Legato records it every 5 minutes while Legato is running, so the chart starts empty and fills in over the first few hours.
- **Queue:** the first 20 jobs in SABnzbd’s order, each with how much is downloaded, and under its bar its category and when it should finish. Big jobs show in GB, small ones in MB. A paused job says Paused, and one SABnzbd is holding back for a while says Delayed. Point at a row for **Pause or resume**, which pauses a job or resumes a paused one, and **Delete**, which asks first and removes the job and what it has downloaded so far. A job still fetching its NZB from a link has no size yet, so it’s counted under the card with any past the first 20.
- **History:** the four newest finished jobs, with their category, size and when they finished. A failed one comes first with SABnzbd’s reason, and **Retry** when SABnzbd can try it again. A job SABnzbd is still checking or unpacking says what it’s doing.

### Status

- Orange while a news server reports an error, a download folder is under 5% free, or SABnzbd paused itself for disk space.
- Grey while downloading is paused.
- A failed download never counts as a problem.
- Red once SABnzbd stops answering.
- Notifies you when it turns orange or red.

## How it connects

The page reads SABnzbd’s API with your API key, which SABnzbd takes in the address as `apikey`.

| Request | When | What it supplies |
| --- | --- | --- |
| `GET /api?mode=queue&limit=20` | Every minute | The queue, speed, what’s left, whether it’s paused, the speed limit, free space and the version. |
| `GET /api?mode=history&limit=4` | Every minute | The four newest finished jobs. |
| `GET /api?mode=server_stats` | Every minute | What was downloaded today and this month. |
| `GET /api?mode=status&skip_dashboard=1` | Every minute | Each news server and its error, if any. |
| `GET /api?mode=get_config&section=misc&keyword=bandwidth_max` | Every minute | Whether Maximum line speed is set, for the speed menu. |
| `POST /api?mode=pause`, `mode=resume` | When you press Pause or Resume | Pauses or resumes all downloading. |
| `POST /api?mode=config&name=set_pause` | When you pick a time from Pause for | Pauses, and resumes after that many minutes. |
| `POST /api?mode=config&name=speedlimit` | When you pick a limit | Sets the limit as a percent of Maximum line speed. |
| `POST /api?mode=queue&name=pause` (or `resume`, `delete`) | When you press a row’s button | Pauses, resumes or deletes that job; Delete also removes its files. |
| `POST /api?mode=retry` | When you press Retry | SABnzbd tries the failed job again. |

That’s 300 small requests an hour while your Mac is awake, about 12 KB a minute. They all belong to one source, so a press on any card refreshes the whole page. SABnzbd’s [API documentation](https://sabnzbd.org/wiki/configuration/5.1/api) covers each request.

The news server answer also carries your API key, as SABnzbd sends it. Legato holds answers in memory only and keeps no History for this page, but **Preview Source** shows it like any other answer.

[Sources and buttons](https://legatobar.com/docs/sources.md) explains each part of a page.

## Set it up

1. **Find your API key.** In SABnzbd, open **Config → General**. The key is under **Security**, as **API Key** (not the NZB Key).
2. **Save it in Legato.** In Settings → Secrets, save the key under `sabnzbd`, bound to your SABnzbd’s address. You can also link a [1Password reference](https://legatobar.com/docs/1password.md).
3. **Add the page.** Paste the prompt into your agent, or download the page and run `/Applications/Legato.app/Contents/Helpers/legato set sabnzbd sabnzbd.json`.
4. **Point it at SABnzbd.** Change `http://sabnzbd.local:8080` to your SABnzbd’s address on the source. If you reach SABnzbd by a name, it must be one SABnzbd already accepts (Config → Special → `host_whitelist`); an IP address always works. If SABnzbd sits behind a reverse proxy at a path, or has a `url_base` set (Config → Special), such as `https://media.example.com/sabnzbd`, set the source’s `url` to `https://media.example.com` and add `"base": "/sabnzbd"`. SABnzbd’s own HTTPS uses a self-signed certificate, which Legato can trust at an IP address or a `.local` name.

The cards fill within a minute. A mistyped key is the usual reason they don’t: the page then notes that SABnzbd refused it.

### Prompt for your agent

```prompt
Add a Legato page for SABnzbd, starting from https://legatobar.com/examples/sabnzbd.json.

Add the page as it is and change http://sabnzbd.local:8080 on the source to my SABnzbd’s address. I’ll save my API key as sabnzbd in Settings → Secrets myself.

Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.
```

### Download the page

```json
{
  "$schema": "./.schemas/page.schema.json",
  "title": "SABnzbd",
  "icon": "arrow.down.circle",
  "sources": {
    "sab": {
      "url": "http://sabnzbd.local:8080",
      "secret": "sabnzbd",
      "auth": {
        "type": "query",
        "name": "apikey"
      },
      "every": "1m",
      "requests": {
        "queue": "/api?mode=queue&limit=20&output=json",
        "history": "/api?mode=history&limit=4&output=json",
        "stats": "/api?mode=server_stats&output=json",
        "status": "/api?mode=status&skip_dashboard=1&output=json",
        "line": "/api?mode=get_config&section=misc&keyword=bandwidth_max&output=json"
      },
      "fail": {
        "when": {
          "any": [
            {
              "path": "queue.status",
              "equals": false
            },
            {
              "path": "history.status",
              "equals": false
            },
            {
              "path": "stats.status",
              "equals": false
            },
            {
              "path": "status.status",
              "equals": false
            },
            {
              "path": "line.status",
              "equals": false
            }
          ]
        },
        "message": {
          "if": {
            "path": "queue.error",
            "exists": true
          },
          "then": {
            "template": "{queue.error}"
          },
          "else": {
            "if": {
              "path": "history.error",
              "exists": true
            },
            "then": {
              "template": "{history.error}"
            },
            "else": {
              "if": {
                "path": "stats.error",
                "exists": true
              },
              "then": {
                "template": "{stats.error}"
              },
              "else": {
                "if": {
                  "path": "status.error",
                  "exists": true
                },
                "then": {
                  "template": "{status.error}"
                },
                "else": {
                  "template": "{line.error}"
                }
              }
            }
          }
        }
      },
      "derive": [
        {
          "name": "queue_eta",
          "value": {
            "each": "queue.queue.slots",
            "where": {
              "path": "mb",
              "gte": 0.01
            },
            "fields": {
              "nzo_id": "nzo_id",
              "seconds": {
                "add": [
                  {
                    "path": "timeleft",
                    "match": "^([0-9]+):",
                    "scale": 3600
                  },
                  {
                    "path": "timeleft",
                    "match": "^[0-9]+:([0-9]+):",
                    "scale": 60
                  },
                  {
                    "path": "timeleft",
                    "match": ":([0-9]+)$"
                  }
                ],
                "default": 0
              },
              "category": {
                "path": "cat",
                "values": {
                  "tv": "TV",
                  "movies": "Movies",
                  "music": "Music",
                  "audio": "Audio",
                  "software": "Software",
                  "*": "",
                  "None": ""
                },
                "default": {
                  "template": "{cat}"
                }
              }
            }
          }
        },
        {
          "name": "queue_rows",
          "value": {
            "each": "queue.queue.slots",
            "where": {
              "path": "mb",
              "gte": 0.01
            },
            "lookup": {
              "from": "queue_eta",
              "by": "nzo_id",
              "on": "nzo_id",
              "as": "eta"
            },
            "fields": {
              "nzo_id": "nzo_id",
              "status": "status",
              "filename": "filename",
              "title": {
                "template": "{filename|clip:40}"
              },
              "unit": {
                "if": {
                  "path": "mb",
                  "gte": 1024
                },
                "then": {
                  "template": "GB"
                },
                "else": {
                  "template": "MB"
                }
              },
              "done": {
                "if": {
                  "path": "mb",
                  "gte": 1024
                },
                "then": {
                  "subtract": [
                    {
                      "path": "mb",
                      "match": "^[0-9.]+"
                    },
                    {
                      "path": "mbleft",
                      "match": "^[0-9.]+"
                    }
                  ],
                  "scale": 0.0009765625,
                  "round": 1
                },
                "else": {
                  "if": {
                    "path": "mb",
                    "gte": 10
                  },
                  "then": {
                    "subtract": [
                      {
                        "path": "mb",
                        "match": "^[0-9.]+"
                      },
                      {
                        "path": "mbleft",
                        "match": "^[0-9.]+"
                      }
                    ],
                    "round": 0
                  },
                  "else": {
                    "subtract": [
                      {
                        "path": "mb",
                        "match": "^[0-9.]+"
                      },
                      {
                        "path": "mbleft",
                        "match": "^[0-9.]+"
                      }
                    ],
                    "round": 2
                  }
                }
              },
              "total": {
                "if": {
                  "path": "mb",
                  "gte": 1024
                },
                "then": {
                  "path": "mb",
                  "match": "^[0-9.]+",
                  "scale": 0.0009765625,
                  "round": 1
                },
                "else": {
                  "if": {
                    "path": "mb",
                    "gte": 10
                  },
                  "then": {
                    "path": "mb",
                    "match": "^[0-9.]+",
                    "round": 0
                  },
                  "else": {
                    "path": "mb",
                    "match": "^[0-9.]+",
                    "round": 2
                  }
                }
              },
              "state": {
                "path": "status",
                "values": {
                  "Paused": "Paused",
                  "Propagating": "Delayed",
                  "Checking": "Checking",
                  "Fetching": "Fetching repair blocks",
                  "Queued": "Queued"
                },
                "default": ""
              },
              "eta": {
                "if": {
                  "path": "eta.seconds",
                  "gt": 0
                },
                "then": {
                  "if": {
                    "path": "eta.category",
                    "not": ""
                  },
                  "then": {
                    "template": "{eta.category} · in {eta.seconds|duration}"
                  },
                  "else": {
                    "template": "in {eta.seconds|duration}"
                  }
                },
                "else": {
                  "template": "{eta.category}"
                }
              },
              "toggle": {
                "if": {
                  "path": "status",
                  "equals": "Paused"
                },
                "then": {
                  "template": "resume"
                },
                "else": {
                  "template": "pause"
                }
              }
            }
          }
        },
        {
          "name": "drawn",
          "value": {
            "count": "queue_rows",
            "default": 0
          }
        },
        {
          "name": "others",
          "value": {
            "subtract": [
              {
                "path": "queue.queue.noofslots",
                "default": 0
              },
              "drawn"
            ],
            "default": 0
          }
        },
        {
          "name": "queue_empty",
          "value": {
            "if": {
              "path": "others",
              "gt": 0
            },
            "then": {
              "if": {
                "path": "others",
                "equals": 1
              },
              "then": {
                "template": "1 job waiting for its NZB"
              },
              "else": {
                "template": "{others} jobs waiting for their NZBs"
              }
            },
            "else": {
              "template": "Nothing in the queue"
            }
          }
        },
        {
          "name": "left_b",
          "value": {
            "path": "queue.queue.mbleft",
            "match": "^[0-9.]+",
            "scale": 1048576
          }
        },
        {
          "name": "left_s",
          "value": {
            "add": [
              {
                "path": "queue.queue.timeleft",
                "match": "^([0-9]+):",
                "scale": 3600
              },
              {
                "path": "queue.queue.timeleft",
                "match": "^[0-9]+:([0-9]+):",
                "scale": 60
              },
              {
                "path": "queue.queue.timeleft",
                "match": ":([0-9]+)$"
              }
            ],
            "default": 0
          }
        },
        {
          "name": "free_b",
          "value": {
            "path": "queue.queue.diskspace2",
            "match": "^[0-9.]+",
            "scale": 1073741824
          }
        },
        {
          "name": "disk_b",
          "value": {
            "path": "queue.queue.diskspacetotal2",
            "match": "^[0-9.]+",
            "scale": 1073741824
          }
        },
        {
          "name": "temp_free_b",
          "value": {
            "path": "queue.queue.diskspace1",
            "match": "^[0-9.]+",
            "scale": 1073741824
          }
        },
        {
          "name": "temp_disk_b",
          "value": {
            "path": "queue.queue.diskspacetotal1",
            "match": "^[0-9.]+",
            "scale": 1073741824
          }
        },
        {
          "name": "temp_floor_b",
          "value": {
            "path": "queue.queue.diskspacetotal1",
            "match": "^[0-9.]+",
            "scale": 53687091.2
          }
        },
        {
          "name": "floor_b",
          "value": {
            "path": "queue.queue.diskspacetotal2",
            "match": "^[0-9.]+",
            "scale": 53687091.2
          }
        },
        {
          "name": "temp_low",
          "value": {
            "if": {
              "all": [
                {
                  "path": "temp_disk_b",
                  "gt": 0
                },
                {
                  "path": "temp_free_b",
                  "lt": {
                    "path": "temp_floor_b"
                  }
                }
              ]
            },
            "then": {
              "template": "yes"
            },
            "else": {
              "template": "no"
            }
          }
        },
        {
          "name": "newest_warning",
          "value": {
            "each": "status.status.warnings",
            "last": 1,
            "fields": {
              "origin": "origin"
            }
          }
        },
        {
          "name": "newest_origin",
          "value": {
            "first": "origin",
            "of": "newest_warning"
          }
        },
        {
          "name": "disk_pause",
          "value": {
            "if": {
              "all": [
                {
                  "path": "queue.queue.paused",
                  "equals": true
                },
                {
                  "path": "newest_origin",
                  "contains": "assembler.py"
                }
              ]
            },
            "then": {
              "template": "yes"
            },
            "else": {
              "template": "no"
            }
          }
        },
        {
          "name": "done_low",
          "value": {
            "if": {
              "all": [
                {
                  "path": "disk_b",
                  "gt": 0
                },
                {
                  "path": "free_b",
                  "lt": {
                    "path": "floor_b"
                  }
                }
              ]
            },
            "then": {
              "template": "yes"
            },
            "else": {
              "template": "no"
            }
          }
        },
        {
          "name": "speed_mbs",
          "value": {
            "path": "queue.queue.kbpersec",
            "match": "^[0-9.]+",
            "scale": 0.0009765625,
            "round": 2
          }
        },
        {
          "name": "server_errors",
          "value": {
            "count": "status.status.servers",
            "default": 0,
            "where": {
              "all": [
                {
                  "path": "servererror",
                  "exists": true
                },
                {
                  "path": "servererror",
                  "not": ""
                }
              ]
            }
          }
        },
        {
          "name": "server_error",
          "value": {
            "first": "servererror",
            "of": "status.status.servers",
            "where": {
              "all": [
                {
                  "path": "servererror",
                  "exists": true
                },
                {
                  "path": "servererror",
                  "not": ""
                }
              ]
            }
          }
        },
        {
          "name": "server_errors_more",
          "value": {
            "subtract": [
              "server_errors",
              1
            ]
          }
        },
        {
          "name": "pause_min",
          "value": {
            "path": "queue.queue.pause_int",
            "match": "^([0-9]+):"
          }
        },
        {
          "name": "history_failed",
          "value": {
            "each": "history.history.slots",
            "where": {
              "path": "status",
              "equals": "Failed"
            },
            "fields": {
              "nzo_id": "nzo_id",
              "name": "name",
              "status": "status",
              "retry": "retry",
              "fail_message": "fail_message",
              "bytes": "bytes",
              "category": "category",
              "completed": "completed",
              "shown_category": {
                "path": "category",
                "values": {
                  "tv": "TV",
                  "movies": "Movies",
                  "music": "Music",
                  "audio": "Audio",
                  "software": "Software",
                  "*": "",
                  "None": ""
                },
                "default": {
                  "template": "{category}"
                }
              },
              "reason": {
                "path": "fail_message",
                "match": "^(.*?)(?: - https?://\\S+)?$"
              }
            }
          }
        },
        {
          "name": "history_rest",
          "value": {
            "each": "history.history.slots",
            "where": {
              "path": "status",
              "not": "Failed"
            },
            "fields": {
              "nzo_id": "nzo_id",
              "name": "name",
              "status": "status",
              "retry": "retry",
              "fail_message": "fail_message",
              "bytes": "bytes",
              "category": "category",
              "completed": "completed",
              "shown_category": {
                "path": "category",
                "values": {
                  "tv": "TV",
                  "movies": "Movies",
                  "music": "Music",
                  "audio": "Audio",
                  "software": "Software",
                  "*": "",
                  "None": ""
                },
                "default": {
                  "template": "{category}"
                }
              },
              "reason": {
                "path": "fail_message",
                "match": "^(.*?)(?: - https?://\\S+)?$"
              }
            }
          }
        },
        {
          "name": "history_rows",
          "value": {
            "each": [
              "history_failed",
              "history_rest"
            ],
            "limit": 4,
            "fields": {
              "nzo_id": "nzo_id",
              "status": "status",
              "retry": "retry",
              "text": {
                "template": "{name|clip:60}"
              },
              "subtitle": {
                "if": {
                  "path": "status",
                  "equals": "Failed"
                },
                "then": {
                  "template": "{reason|clip:80}"
                },
                "else": {
                  "if": {
                    "path": "bytes",
                    "gt": 0
                  },
                  "then": {
                    "if": {
                      "path": "category",
                      "in": [
                        "*",
                        "None",
                        ""
                      ]
                    },
                    "then": {
                      "template": "{bytes|bytes}"
                    },
                    "else": {
                      "template": "{shown_category} · {bytes|bytes}"
                    }
                  },
                  "else": {
                    "template": "{shown_category}"
                  }
                }
              },
              "detail": {
                "path": "status",
                "values": {
                  "Completed": {
                    "template": "{completed|ago}"
                  },
                  "Failed": {
                    "template": "Failed · {completed|ago}"
                  }
                },
                "default": {
                  "template": "{status}"
                }
              }
            }
          }
        }
      ]
    }
  },
  "cards": [
    {
      "id": "health",
      "type": "status",
      "placement": "page_info",
      "label": "SABnzbd",
      "state": "unknown",
      "width": "full",
      "source": {
        "ref": "sab",
        "map": {
          "state": {
            "if": {
              "any": [
                {
                  "path": "server_errors",
                  "gt": 0
                },
                {
                  "path": "temp_low",
                  "equals": "yes"
                },
                {
                  "path": "done_low",
                  "equals": "yes"
                },
                {
                  "path": "disk_pause",
                  "equals": "yes"
                }
              ]
            },
            "then": {
              "template": "warning"
            },
            "else": {
              "if": {
                "path": "queue.queue.paused",
                "equals": true
              },
              "then": {
                "template": "off"
              },
              "else": {
                "template": "ok"
              }
            }
          },
          "detail": {
            "if": {
              "path": "server_errors",
              "gt": 0
            },
            "then": {
              "if": {
                "path": "server_errors",
                "equals": 1
              },
              "then": {
                "template": "{server_error|clip:110}"
              },
              "else": {
                "template": "{server_error|clip:90} · and {server_errors_more} more"
              }
            },
            "else": {
              "if": {
                "path": "disk_pause",
                "equals": "yes"
              },
              "then": {
                "template": "Paused: not enough free space · {temp_free_b|bytes} free for downloads"
              },
              "else": {
                "if": {
                  "path": "temp_low",
                  "equals": "yes"
                },
                "then": {
                  "template": "Low on space for downloads: {temp_free_b|bytes} free of {temp_disk_b|bytes}"
                },
                "else": {
                  "if": {
                    "path": "done_low",
                    "equals": "yes"
                  },
                  "then": {
                    "template": "Low on space for finished downloads: {free_b|bytes} free of {disk_b|bytes}"
                  },
                  "else": {
                    "if": {
                      "path": "queue.queue.paused",
                      "equals": true
                    },
                    "then": {
                      "if": {
                        "path": "pause_min",
                        "gt": 0
                      },
                      "then": {
                        "template": "Paused · resumes in {pause_min} min"
                      },
                      "else": {
                        "if": {
                          "path": "queue.queue.pause_int",
                          "not": "0"
                        },
                        "then": {
                          "template": "Paused · resumes in under a minute"
                        },
                        "else": {
                          "template": "Paused"
                        }
                      }
                    },
                    "else": {
                      "template": "SABnzbd {queue.queue.version} · No problems"
                    }
                  }
                }
              }
            }
          }
        },
        "failed": {
          "state": "critical",
          "detail": "SABnzbd isn't answering",
          "after": 3
        }
      }
    },
    {
      "id": "controls",
      "type": "text",
      "label": "Controls",
      "actions_placement": "corner",
      "source": {
        "ref": "sab"
      },
      "actions": [
        {
          "label": "Pause",
          "icon": "pause.fill",
          "method": "POST",
          "path": "/api?mode=pause",
          "body": {},
          "success": {
            "path": "status",
            "equals": true
          },
          "error": "error",
          "when": {
            "path": "queue.queue.paused",
            "equals": false
          }
        },
        {
          "label": "Pause for",
          "icon": "timer",
          "method": "POST",
          "path": "/api?mode=config&name=set_pause&value={choice}",
          "body": {},
          "success": {
            "path": "status",
            "equals": true
          },
          "error": "error",
          "when": {
            "path": "queue.queue.paused",
            "equals": false
          },
          "choices": [
            {
              "label": "30 minutes",
              "value": 30
            },
            {
              "label": "1 hour",
              "value": 60
            },
            {
              "label": "3 hours",
              "value": 180
            }
          ]
        },
        {
          "label": "Resume",
          "icon": "play.fill",
          "method": "POST",
          "path": "/api?mode=resume",
          "body": {},
          "success": {
            "path": "status",
            "equals": true
          },
          "error": "error",
          "when": {
            "path": "queue.queue.paused",
            "equals": true
          }
        },
        "|",
        {
          "label": "Speed limit",
          "icon": "gauge.with.dots.needle.33percent",
          "method": "POST",
          "path": "/api?mode=config&name=speedlimit&value={choice}",
          "body": {},
          "success": {
            "path": "status",
            "equals": true
          },
          "error": "error",
          "when": {
            "all": [
              {
                "path": "line.config.misc.bandwidth_max",
                "exists": true
              },
              {
                "path": "line.config.misc.bandwidth_max",
                "not": ""
              }
            ]
          },
          "current": "queue.queue.speedlimit",
          "choices": [
            {
              "label": "No limit",
              "value": 100
            },
            {
              "label": "75%",
              "value": 75
            },
            {
              "label": "50%",
              "value": 50
            },
            {
              "label": "25%",
              "value": 25
            }
          ]
        }
      ]
    },
    {
      "id": "facts",
      "type": "facts",
      "label": "Downloads",
      "items": [
        {
          "key": "Left",
          "value": "—"
        },
        {
          "key": "Downloaded",
          "value": "—"
        },
        {
          "key": "Free space",
          "value": "—"
        },
        {
          "key": "Version",
          "value": "—"
        }
      ],
      "source": {
        "ref": "sab",
        "map": {
          "items[0].value": {
            "if": {
              "path": "left_b",
              "gt": 0
            },
            "then": {
              "if": {
                "path": "queue.queue.paused",
                "equals": true
              },
              "then": {
                "template": "{left_b|bytes} · paused"
              },
              "else": {
                "if": {
                  "path": "left_s",
                  "gt": 0
                },
                "then": {
                  "template": "{left_b|bytes} · {left_s|duration}"
                },
                "else": {
                  "template": "{left_b|bytes}"
                }
              }
            },
            "else": {
              "template": "Nothing queued"
            }
          },
          "items[1].value": {
            "template": "{stats.day|bytes} today · {stats.month|bytes} this month"
          },
          "items[2].value": {
            "template": "{free_b|bytes} of {disk_b|bytes}"
          },
          "items[3].value": {
            "template": "{queue.queue.version}"
          }
        }
      }
    },
    {
      "id": "speed",
      "type": "sparkline",
      "label": "Speed",
      "unit": "MB/s",
      "change": false,
      "points": [],
      "source": {
        "ref": "sab",
        "map": {
          "points": {
            "history": "speed_mbs",
            "every": "5m",
            "keep": 60
          }
        }
      }
    },
    {
      "id": "queue",
      "type": "pacing",
      "label": "Queue",
      "unit": "GB",
      "items": [],
      "source": {
        "ref": "sab",
        "empty": {
          "text": "{queue_empty}",
          "when": {
            "path": "drawn",
            "equals": 0
          }
        },
        "map": {
          "items": {
            "each": "queue_rows",
            "fields": {
              "key": "nzo_id",
              "label": "title",
              "state": "state",
              "detail": "eta",
              "value": "done",
              "target": "total",
              "unit": "unit"
            }
          },
          "detail": {
            "if": {
              "path": "others",
              "gt": 0
            },
            "then": {
              "template": "{others} more in SABnzbd"
            }
          }
        }
      },
      "row_actions_shown": "always",
      "row_actions": [
        {
          "label": "Pause or resume",
          "icon": "playpause",
          "method": "POST",
          "path": "/api?mode=queue&name={toggle}&value={nzo_id}",
          "body": {},
          "success": {
            "path": "status",
            "equals": true
          },
          "error": "error"
        },
        {
          "label": "Delete",
          "icon": "trash",
          "method": "POST",
          "path": "/api?mode=queue&name=delete&value={nzo_id}&del_files=1",
          "body": {},
          "success": {
            "path": "status",
            "equals": true
          },
          "error": "error",
          "confirm": {
            "message": "Delete {filename|clip:80} and what it has downloaded so far?",
            "button": "Delete"
          }
        }
      ]
    },
    {
      "id": "history",
      "type": "list",
      "label": "History",
      "max_items": 4,
      "items": [],
      "source": {
        "ref": "sab",
        "empty": {
          "text": "Nothing finished yet",
          "when": {
            "path": "history.history.noofslots",
            "equals": 0
          }
        },
        "map": {
          "items": {
            "each": "history_rows",
            "fields": {
              "key": "nzo_id",
              "text": "text",
              "subtitle": "subtitle",
              "detail": "detail"
            }
          }
        }
      },
      "row_actions": [
        {
          "label": "Retry",
          "icon": "arrow.uturn.forward",
          "method": "POST",
          "path": "/api?mode=retry&value={nzo_id}",
          "body": {},
          "success": {
            "path": "status",
            "equals": true
          },
          "error": "error",
          "when": {
            "all": [
              {
                "path": "status",
                "equals": "Failed"
              },
              {
                "path": "retry",
                "equals": true
              }
            ]
          }
        }
      ]
    }
  ]
}
```

## Questions

### Why is there no speed menu?

The menu sets a percent of your **Maximum line speed**, and SABnzbd ignores a percent until you’ve told it how fast your connection is. Set it in Config → General, and the menu appears within a minute.

### Does the page tell me when SABnzbd paused itself?

When it paused for disk space, yes: the page turns orange and says "Paused: not enough free space". SABnzbd does that when a folder hasn’t room for the next file plus its minimum free space (Config → Folders). The page reads the reason from SABnzbd’s newest warning, so if you pause by hand right after a disk-space pause, it may still say so until SABnzbd logs something else. With **Auto resume** on in SABnzbd (Config → Folders), it carries on by itself once there’s room again.

### Why doesn’t a failed download count as a problem?

Downloads fail now and then, and Sonarr or Radarr usually find another copy. The failed job comes first in History with SABnzbd’s reason and Retry, so it’s there when you look. A news server SABnzbd can’t use affects every download, so that counts as a problem.

### What does Delete remove?

The job and whatever it has downloaded so far, as Delete in SABnzbd’s queue does when you also choose to remove the files. Finished downloads in your completed folder aren’t touched.

### Does it work with Sonarr and Radarr?

Yes: the [Sonarr](https://legatobar.com/services/sonarr) and [Radarr](https://legatobar.com/services/radarr) pages show the same downloads from their side, with the series and films they belong to.

Legato is independent and isn’t affiliated with or endorsed by SABnzbd.

## Verification

The page’s rules were checked against SABnzbd 5.1.3’s answers on 15 Nov 2026, from a test server downloading made-up jobs from a stand-in news server: a running queue, paused and timed-paused downloading, a failed job, Maximum line speed set and unset, and a news server made to turn SABnzbd away. Through Legato, a row’s Pause and Resume, Pause for 30 minutes, Resume, the 50% limit and No limit, Retry on the failed job and Delete on a queued one all went through, and a made-up API key was refused. SABnzbd 5.2.0, at its second release candidate then, sends the same fields. Illustrations use made-up jobs, servers and numbers. See the [service index](https://legatobar.com/services/) for other examples.
