tsirysndr / music-player

An extensible music server written in Rust 🚀🎵✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minor issues(handlers, scan)

luckasRanarison opened this issue · comments

commented

Hi there! It's the first time I'm really trying your app and I've encountered some small issues. Unfortunately, I can't work on a fork of your project and make a PR because of my current hardware but I hope this issue helps.

  • The TUI player panics when trying to access empty fields due to the handlers:

image

The Enter events should check if the indexed field is valid

  Key::Enter => {
         if let Some(artist) = app.artist_table.artist.get(app.artist_table.selected_index) {
                app.dispatch(IoEvent::GetArtist(artist.id.clone()));
                app.push_navigation_stack(RouteId::Artist, ActiveBlock::ArtistBlock);
         }
  }

image

  • Deleted songs still appear after re-scaning

image
image

OS: Fedora37
music-player version: v0.2.0-alpha.13