Skip to content

v1.0.1 - Performance, Connection Pooling & Documentation Overhaul

Latest

Choose a tag to compare

@Baranigsiz Baranigsiz released this 01 Sep 20:41
· 2 commits to main since this release

πŸš€ What's Changed in v1.0.1

⚑ Performance & Latency Improvements

  • Eliminated Double YouTube Extraction: Tracks added to queue now use lightweight metadata extraction (\extract_track_info) instead of immediately spawning unused \FFmpegPCMAudio\ streams.
  • Fast FFmpeg Probing: Added -probesize 32k -analyzeduration 0\ to FFmpeg arguments to reduce stream startup latency by 1-2 seconds.

πŸ“» Autoplay & Queue Flow Enhancements

  • Instant Autoplay on Idle: Toggling Autoplay ON while the player is idle now immediately queries YouTube Mix using the last played track in history and starts playback without delay.
  • Idle Skip with Autoplay: Skipping when playback has ended now safely triggers Autoplay via playback history fallback instead of erroring out.

🌐 Network & Connection Pooling

  • Global aiohttp.ClientSession Pool: Integrated a shared HTTP session across the bot lifecycle for Spotify embed track resolution and LRCLIB lyrics fetching, saving 100-300ms per request.

πŸ›‘οΈ Voice State & Task Stability

  • Smart Voice Disconnect: Enhanced \on_voice_state_update\ to check if all remaining members are bots before disconnecting.
  • Graceful Progress Updater Exit: Catches \discord.NotFound\ to cleanly terminate updater tasks when now-playing embeds are deleted.
  • Centralized Player Cleanup: Added \player.cleanup()\ for complete queue and timer cleanup on stop or disconnect.

πŸ—„οΈ Settings Manager Thread Safety

  • Race Condition Fix: Removed unawaited background save tasks during settings reads; writes occur safely on explicit configuration updates.

πŸ“– Documentation & GitHub

  • Complete README Overhaul: Redesigned with badges, responsive showcase tables, command matrix, and architectural overview.
  • Topic Corrections: Fixed repository topic typo (\il8n\ -> \i18n).