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>
7 lines
209 B
Lua
7 lines
209 B
Lua
function on_torrent_finished(event)
|
|
print("torrent " .. event.torrent_id .. " finished")
|
|
end
|
|
|
|
function on_file_complete(event)
|
|
naut.move_file(event.torrent_id, event.index, event.path .. ".moved")
|
|
end
|