grabster/src-tauri
orca fbde195395 Stream torrents from Torznab indexers into the built-in player
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>
2026-11-26 21:31:34 -05:00
..
capabilities Add media player for finished downloads; fix playback, GPU, a11y 2026-11-26 11:18:55 -05:00
icons Grabster v0.1: WinMX-era style Usenet front end for NZBGet 2026-11-24 00:14:24 -05:00
src Stream torrents from Torznab indexers into the built-in player 2026-11-26 21:31:34 -05:00
build.rs Grabster v0.1: WinMX-era style Usenet front end for NZBGet 2026-11-24 00:14:24 -05:00
Cargo.lock Add media player for finished downloads; fix playback, GPU, a11y 2026-11-26 11:18:55 -05:00
Cargo.toml Add media player for finished downloads; fix playback, GPU, a11y 2026-11-26 11:18:55 -05:00
tauri.conf.json Stream torrents from Torznab indexers into the built-in player 2026-11-26 21:31:34 -05:00