Engine - Bundle rqbit 9.1.0 (scripts/fetch-rqbit.sh, pinned SHA-256 per arch), started on first use: 127.0.0.1 + random port, random Basic-auth password passed in its env, UPnP off, session/DHT cache/log under the app data dir, downloads in ~/Downloads/Grabster/Torrents. Stopped with Grabster like NZBGet. - torrent_add peeks at the file list, then adds only the playable files (no samples); torrent_stats / torrent_remove (Ditch = delete with data). - engine.rs: spawn_supervised / wait_for_port shared by NZBGet and rqbit. - http.rs: tiny loopback HTTP client (Content-Length, chunked, streaming bodies). Playback - media.rs proxies torrent streams (Source::Remote) so the page never sees rqbit's password; suffix ranges become explicit ones; the MKV subtitle fix now runs lazily on the first request, so it also works on streams. - Player items are a finished download or a stream. Streams show "Connecting to peers…", then speed / peers / % on disk in the strip. Stop asks Keep or Ditch; starting something else over an undecided stream asks first. Search - Indexers have a type: Newznab (Usenet) or Torznab (Prowlarr, Jackett). Torznab results show seeders; double-click or the Stream button plays them. - Mock mode: a Torznab indexer with public-domain films, and a simulated rqbit. Tests: http client, playable-file picking, proxy (auth, ranges, MKV fix) against a fake rqbit, and an opt-in end-to-end test against the real rqbit with the Creative Commons Sintel torrent (cargo test --lib -- --ignored real_rqbit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
851 B
JSON
30 lines
851 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "Grabster",
|
|
"version": "0.1.0",
|
|
"identifier": "com.orca.grabster",
|
|
"build": {
|
|
"beforeDevCommand": "npm run fetch:nzbget && npm run fetch:rqbit && npm run dev",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeBuildCommand": "npm run fetch:nzbget && npm run fetch:rqbit && npm run build",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "Grabster v0.1",
|
|
"width": 1100,
|
|
"height": 720,
|
|
"minWidth": 760,
|
|
"minHeight": 480
|
|
}
|
|
],
|
|
"security": { "csp": null }
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": ["rpm", "appimage"],
|
|
"resources": { "resources/nzbget/": "nzbget/", "resources/rqbit/": "rqbit/" },
|
|
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/icon.png"]
|
|
}
|
|
}
|