github hua0512/rust-srec rust-srec-v0.3.0

6 months ago

rust-srec v0.3.0

This release covers four independent themes — recording session reliability, the new output-root write gate (#508), a check-history strip on the streamer details page, and clearer behavior under concurrent-download saturation — plus rclone bandwidth controls, the start of backend notification localization, a Mesio CLI flag, and a batch of platform fixes for Huya and RedBook.

📖 Full notes: English · 中文

Highlights

  • Output-root write gate (#508, #515)
    Pauses recordings cleanly at the filesystem boundary when the disk is full or the target mount becomes unwritable. Replaces the 40+ cascading failure storm with a single Degraded health status and one critical notification. Auto-recovers on disk-full once you free space; for stale Docker bind mounts, surfaces a clear restart instruction instead of looping forever.

  • Recording session lifecycle overhaul (#534)
    Brief network blips no longer end the session — disconnects enter a quiet-period and resume seamlessly if LIVE is detected within the window. HTTP 404 is no longer authoritative offline; HLS #EXT-X-ENDLIST ends the session immediately. Zero-byte "ghost session" cards are filtered from the API and cleaned up by a background janitor. Per-streamer Offline Check override card lets you tune the cadence per streamer / template / platform.

  • Check-history strip on the streamer details page (#546)
    Shows the last 60 monitor polls as colored bars (green = live, gray = offline, amber = filtered, red = error). Hover any bar to see the time, duration, and the full list of stream qualities — with the one rust-srec actually picked highlighted. Updates live as new checks happen.

  • Concurrent downloads: smarter scheduling and visibility (#548)
    New Queued badge on streamer cards when waiting for a free slot. High-priority streamers genuinely get the next free slot. Hitting the limit no longer blocks live/offline events for other streamers. Stale signed URLs auto-refresh after a tunable wait threshold. Schedule windows still apply to queued streamers. Health endpoint reports Degraded only when the limit is the actual bottleneck.

  • Rclone bandwidth & throughput controls (#547)
    The rclone pipeline step now exposes Bandwidth Limit (with timetable support), Transfers, Checkers, TPS Limit / Burst, Multi-Thread Streams, and Multi-Thread Cutoff as form fields — no more memorizing rclone's CLI flags. Existing presets and "Extra Arguments" still take precedence.

  • Backend notification localization (en + zh-CN)
    Every notification event — stream lifecycle, downloads, segments, pipelines, system alerts, credentials — is now localized via rust-i18n. Channels delivering to Telegram, Gotify, Discord, webhook, email, and web push honor the RUST_SREC_LOCALE setting.

  • Mesio CLI
    New --disable-log-file for one-off runs that should not create mesio.log. Cleaner log output when commands are redirected.

Platform fixes

  • Huya: rectification notices ("正在整改中") no longer get streamers stuck offline (#557)
  • Huya: corrected CDN priority mapping; preferred / blacklisted CDN settings now apply as expected (#513 / #514)
  • RedBook: ended streams transition to offline cleanly (#510)
  • Frontend: dedicated Account Not Found badge for NOT_FOUND streamers (#519)

Review before upgrading

  • Two new database migrations run automatically on startup (check-history strip + queue refresh threshold). Nothing for you to do.
  • GET /sessions no longer returns zero-byte ended sessions by default — pass ?include_empty=true if you need the previous behavior.
  • New env vars: RUST_SREC_OUTPUT_ROOTS (output-root boundaries for the write gate, optional) and RUST_SREC_LOCALE (en or zh-CN, defaults to en).
  • WebSocket event stream gains DOWNLOAD_QUEUED / DOWNLOAD_DEQUEUED events and a queued array in the initial snapshot. DownloadRejected now carries a kind discriminator. Ignoring the new fields is safe.

Maintenance

  • Updated to Rust 1.95
  • Refreshed Rust, frontend, docs, and GitHub Actions dependencies
  • Migrated 9 manual Error impls to thiserror

Install

  • Docker (recommended): ghcr.io/hua0512/rust-srec:0.3.0 and :latest (linux/amd64 + linux/arm64)
  • Server binaries: Linux (gnu / musl, x86_64 / aarch64), macOS (Intel / Apple Silicon), Windows
  • Desktop app: macOS (Intel / Apple Silicon), Windows, Linux (x86_64 / aarch64)

All assets are attached below.

Don't miss a new rust-srec release

NewReleases is sending notifications on new releases.