nzbget (usenet, JSON-RPC) and qbittorrent (torrents, WebUI API with manual SID session). Tools: status, queue/torrents, add, pause/resume, delete. Both poll and emit module.<app>.download.added and module.<app>.download.completed — the key plex consumes to rescan; completion is keyed off real success (nzbget history SUCCESS, qbittorrent progress reaching 1), not mere queue disappearance, so a failed or deleted item is not reported as done. Typecheck; manifests parse.
58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
"module": "qbittorrent",
|
|
"version": "1",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"emits": [
|
|
"module.qbittorrent.download.added",
|
|
"module.qbittorrent.download.completed"
|
|
],
|
|
"consumes": [],
|
|
"own-secrets": {
|
|
"broker": "/var/lib/qbittorrent/broker"
|
|
},
|
|
"listens": [
|
|
{
|
|
"port": 8080,
|
|
"protocol": "tcp",
|
|
"from": "mesh",
|
|
"why": "the download client's pages"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "config",
|
|
"type": "directory",
|
|
"path": "/services/qbittorrent/config",
|
|
"mode": "0700",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "media-downloads",
|
|
"type": "directory",
|
|
"path": "/services/media/downloads",
|
|
"mode": "0755",
|
|
"owner": "1000:1000"
|
|
},
|
|
{
|
|
"id": "server",
|
|
"type": "container",
|
|
"name": "qbittorrent",
|
|
"image": "lscr.io/linuxserver/qbittorrent@sha256:a00b6a597a3832a1814cde0ef60abc55c94644f3f80902c3432f6af6de8d4a96",
|
|
"env": {
|
|
"PUID": "1000",
|
|
"PGID": "1000",
|
|
"TZ": "Etc/UTC"
|
|
},
|
|
"ports": [
|
|
"8080"
|
|
],
|
|
"volumes": [
|
|
"/services/qbittorrent/config:/config",
|
|
"/services/media/downloads:/downloads"
|
|
]
|
|
}
|
|
]
|
|
}
|