diff options
| author | salmonik <raisersoft@proton.me> | 2026-05-08 00:40:40 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-05-08 00:40:40 +0200 |
| commit | cfd0781ebae76447cc8072fd60883aabf8158d32 (patch) | |
| tree | 9cb5bf7da4b1c4070cdb827cd0387968e09161eb /TODO.md | |
| parent | Fix queue bugs: play -i on empty queue, stale track replay after queue ends, ... (diff) | |
| download | rsplayer-cfd0781ebae76447cc8072fd60883aabf8158d32.tar.gz rsplayer-cfd0781ebae76447cc8072fd60883aabf8158d32.zip | |
Extract queue module, add comprehensive tests, fix queue/play bugs
• Moved Queue, Track, ShuffleMode, AudioMetadata from daemon.rs into new src/queue.rs module with public API\n• Fixed rsp play <file> interrupting active playback (now checks is_playing)\n• Fixed directory play -n/-i inserting files in reverse order (now uses .iter().rev())\n• Removed dead duplicate shuffle handler in process_command\n• Fixed queue display showing (playing) when playback is stopped\n• Added 34 tests covering navigation, shuffle, insert ordering, edge cases, display
Diffstat (limited to '')
| -rw-r--r-- | TODO.md | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -48,12 +48,16 @@ | |||
| 48 | 48 | ||
| 49 | - [x] **Shell completions** - Generate shell completions with `rsp completions bash|elvish|fish|powershell|zsh`. | 49 | - [x] **Shell completions** - Generate shell completions with `rsp completions bash|elvish|fish|powershell|zsh`. |
| 50 | 50 | ||
| 51 | - [x] **Extract queue module** - Moved `Queue`, `Track`, `ShuffleMode`, `AudioMetadata` from daemon into `src/queue.rs` with public API and accessor methods. | ||
| 52 | |||
| 53 | - [x] **Comprehensive queue tests** - 34 tests covering navigation, shuffle, insert ordering, edge cases, and display. | ||
| 54 | |||
| 55 | - [x] **Fix queue/play bugs** - `rsp play <file>` no longer interrupts playback when something is already playing; directory `play -n`/`play -i` now inserts in correct order; removed dead duplicate shuffle handler; queue display no longer shows `(playing)` when playback is stopped. | ||
| 56 | |||
| 51 | ## Remaining Work | 57 | ## Remaining Work |
| 52 | 58 | ||
| 53 | - [ ] **Persist queue state** - Save queue to disk so it survives daemon restarts. | 59 | - [ ] **Persist queue state** - Save queue to disk so it survives daemon restarts. |
| 54 | 60 | ||
| 55 | - [ ] **Scrobbling (Last.fm/ListenBrainz)** - Add scrobbling support via configured credentials. | 61 | - [ ] **Scrobbling (Last.fm/ListenBrainz)** - Add scrobbling support via configured credentials. |
| 56 | 62 | ||
| 57 | - [ ] **Shell completion scripts** - Generate bash/zsh/fish completions using clap. | ||
| 58 | |||
| 59 | - [ ] **Systemd service unit** - Create systemd service file for auto-start. \ No newline at end of file | 63 | - [ ] **Systemd service unit** - Create systemd service file for auto-start. \ No newline at end of file |
