Skip to content

v0.3.5

Choose a tag to compare

@Detteee Detteee released this 22 Nov 06:01
· 818 commits to main since this release

Major Features

🌐 Web-Based Setup Wizard

Complete browser-based first-run configuration - no CLI knowledge required!

Features:

  • QR code displayed directly in web page (no terminal needed)
  • 3-step guided process: Login → Basic Settings → Platform Config
  • Auto-starts monitoring when setup is complete (no restart needed)
  • Real-time login status polling
  • Mobile-friendly responsive design

📦 Auto-Download System

Automatically downloads required files on first run:

  • webui/dist/index.html - Web interface
  • areas.json - Bilibili categories and banned keywords
  • channels.json - Preset channel list
  • Windows only: yt-dlp.exe and ffmpeg.exe

Shows helpful usage information for each file after download.

🔧 Dynamic Area Matching System

NEW: Refactored area detection to use areas.json as single source of truth

Benefits:

  • No code changes needed to add new games - just edit JSON file
  • Enhanced areas.json structure:
    • title_keywords: Auto-detect game from stream title
    • aliases: Short aliases for danmaku commands
  • Users can customize area matching without recompiling

Examples:

  • Stream title contains "valorant" → Auto-selects area 329 (无畏契约)
  • Danmaku command %转播%YT%频道%lol → Uses alias "lol" for "英雄联盟"

Technical Improvements

Backend (Rust)

  • New API endpoints for web-based setup:
    • GET /api/setup/qrcode - Get QR code for login
    • POST /api/setup/poll-login - Check login status
    • POST /api/setup/save-config - Save configuration
  • Unified dependency management in src/deps.rs
  • Dynamic area matching from JSON configuration
  • Non-blocking login flow
  • Better error handling on first run

Frontend (Web UI)

  • Multi-step setup wizard with visual progress
  • QR code display using external API
  • Automatic polling for login status
  • Form validation and error handling
  • Smooth animations and transitions

Bug Fixes

  • Fixed: First run no longer shows "No such file or directory" error
  • Fixed: Web UI now starts correctly on first run (instead of CLI wizard)
  • Fixed: Monitoring loop no longer attempts to run without config
  • Fixed: No error logs on expected first-run scenarios
  • Improved: Better error messages and user guidance

Documentation Updates

  • Updated README (English & Chinese)
  • Enhanced setup guide with web-based instructions
  • Documented new areas.json structure
  • Added file usage explanations

Backward Compatibility

✅ CLI setup still available (./bilistream setup)
✅ CLI mode works as before (./bilistream --cli)
✅ Existing configs remain compatible
✅ No breaking changes

Quick Start

# Download just the executable
./bilistream

# All files auto-download
# Open browser to http://localhost:3150
# Complete setup wizard
# Start streaming! 🎉

What's Changed

New Files:

  • src/deps.rs - Unified dependency management

Enhanced Files:

  • areas.json - Now includes title_keywords and aliases
  • webui/dist/index.html - Multi-step setup wizard
  • src/plugins/danmaku.rs - Dynamic area matching
  • src/main.rs - Improved first-run logic