feat(playlists): add personal saved playlists and track bookmarks (#15)

- Implement PlaylistManager with MySQL persistence (user_favorites & user_playlists)
- Add %fav command with toggle bookmark, paginated list, play, remove, and clear
- Add %playlist command to snapshot queues, queue saved playlists, and manage tracks
- Document %fav and %playlist in README command reference
This commit is contained in:
NoLogicAlan committed 2026-11-23 02:43:32 +03:00
1 parent b2af315240
commit c90f591ec1
13 files changed
+1767 -8

No files matched your search

+8
View File
@@ -48,6 +48,7 @@ We believe essential music features should never be locked behind a paywall —
* 📈 **Comprehensive Last.fm Suite** — Real-time scrobbling, loved tracks synchronization, artist crowns, server leaderboards, profile cards, and automated similar-track autoplay.
* 📑 **Massive Playlist Ingestion** — Asynchronous chunked ingestion for large Spotify and SoundCloud playlists (>100 tracks) with instant playback start on song #1.
* 🌐 **Full 8-Language Localization** — English, Arabic, Kurdish (Sorani), Turkish, German, Brazilian Portuguese, Simplified Chinese, and Traditional Chinese.
* 💾 **Personal Saved Playlists & Favorites** — Bookmark favorite tracks (`%fav`) and save custom queue snapshots (`%playlist save <name>`) stored per-user in MySQL for seamless playback across all servers.
* 📊 **Community & Personal Music Analytics** — Server leaderboards (`%top`) with custom timeframes (`24h`, `week`, `month`, `year`, `all`, `global`), Server Music Wrapped (`%wrapped`), and personal listening recap profiles (`%mywrapped` / `%top me`) backed by permanent MySQL analytics.
* 🛡️ **Hardened Security & Reliability** — Built-in SSRF protection with DNS-rebinding guards (`SafeHttp`) and automated credential redaction (`[REDACTED]`) in owner diagnostics.
@@ -97,6 +98,13 @@ The default prefix is `%`. Server administrators can customize the prefix at any
| `loop` | — | Toggle repeat mode (`song`, `queue`, or `off`) | `%loop queue` |
| `trackopt` | `to` | Configure custom start/end timestamps | `%trackopt set 0:30 3:15` |
### 💾 Personal Playlists & Favorites
| Command | Aliases | Description | Example |
| :--- | :--- | :--- | :--- |
| `fav` | `favorite`, `favorites`, `bookmark` | Save or remove playing track from personal favorites, list, or play | `%fav` / `%fav play` / `%fav list` |
| `playlist` | `pl`, `playlists` | Save active queue as a named playlist, play, list, or manage personal playlists | `%playlist save chill` / `%playlist play chill` / `%playlist list` |
### 🎛️ Audio Effects & Filters
| Command | Aliases | Description | Example |