spezifisch / stmps

Subsonic Terminal Music Player S
GNU General Public License v3.0
13 stars 6 forks source link

[FEATURE] Search for song #26

Closed xxxserxxx closed 1 day ago

xxxserxxx commented 1 month ago

The search function is quite limited, at the moment. It would be nice to expand search to a full global search, including song titles, genres, artists, and all the usual jazz supported by music player clients.

The feasibility of this greatly depends on the Subsonic API, because we would not want to do this on the client, as it would require loading the entire server music library metadata which -- in many cases -- would be impractical. I haven't looked into this at all, but Subsonic probably provides an API for this, so the effort would be mainly building a view around it.

On the one hand, extending the current simple '/' function would be nice; on the other, we would probably want a new panel with vertical splits for each category of search result: album, artist, genre, title. This would then need to have similar functionality to the Browser panel for navigation and adding results to the Queue.

This sounds like a non-trivial chunk of work, and what it would look like should be discussed before the hard, UI, part is started. A POC that simply accepts input, submits to the server, and caches the results might be a good start.

Update

Discussion #28 was created for ... discussing.

xxxserxxx commented 1 day ago

The PR does not implement search-by-genre. I'm going to break that out into a separate ticket.

xxxserxxx commented 1 day ago

Closed by #40