webui: replace nautctl web server with a loadable plugin
Drop the web UI that was compiled into nautctl and serve the torrent-ui front end (../torrent-ui/public) from a native plugin (plugins/webui) loaded via `nautd --plugin`. The plugin talks to the engine only through the host call_rpc ABI and adapts the daemon's RPC surface to the qBittorrent-style contract the UI expects (snapshot/SSE, torrent detail tabs, add/delete, cookie auth). Also folds in the daemon refactor that owns per-torrent worker threads and the swarm engine (naut_swarm) used by the plugin's data source. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
50a357968a
commit
8dde48c05a
27 changed files with 2706 additions and 403 deletions
|
|
@ -18,13 +18,10 @@ Movies (no detectable episode) go to `<SORTED_ROOT>/<Title>/<Title> (year).<ext>
|
|||
### Use it
|
||||
|
||||
```sh
|
||||
# 1. edit SORTED_ROOT (and options) at the top of the script
|
||||
# 2. start the daemon with the script
|
||||
nautd --socket /tmp/nautd.sock --script examples/anime_sort.lua
|
||||
|
||||
# 3. register each torrent's storage so the move can resolve + relocate its files
|
||||
nautctl --socket /tmp/nautd.sock add_torrent \
|
||||
'{"torrent_id":1,"torrent":"show.torrent","root":"/downloads/1"}'
|
||||
# Start the engine, load the script, and add a download.
|
||||
nautd --socket /tmp/nautd.sock
|
||||
nautctl --socket /tmp/nautd.sock script examples/anime_sort.lua
|
||||
nautctl --socket /tmp/nautd.sock add show.torrent /downloads/1
|
||||
```
|
||||
|
||||
As each file completes you'll see, e.g.:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue