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
759 B
JSON
30 lines
759 B
JSON
{
|
|
"name": "grabster",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vue-tsc --noEmit && vite build",
|
|
"build:preview": "vite build --mode preview",
|
|
"fetch:nzbget": "bash scripts/fetch-nzbget.sh",
|
|
"fetch:rqbit": "bash scripts/fetch-rqbit.sh",
|
|
"tauri": "tauri"
|
|
},
|
|
"dependencies": {
|
|
"@tauri-apps/api": "^2",
|
|
"@tauri-apps/plugin-dialog": "^2",
|
|
"@tauri-apps/plugin-http": "^2",
|
|
"@tauri-apps/plugin-opener": "^2",
|
|
"@tauri-apps/plugin-store": "^2",
|
|
"vue": "^3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@tauri-apps/cli": "^2",
|
|
"@vitejs/plugin-vue": "^5",
|
|
"typescript": "~5.6",
|
|
"vite": "^6",
|
|
"vite-plugin-singlefile": "^2",
|
|
"vue-tsc": "^2"
|
|
}
|
|
}
|