Add command to show recommendations. (#593)

* Add command to show recommendations.

This adds a command `similar selected|current` which enables searching for
track recommendations for playlists, albums as well as single tracks.

* Make sure to only send 5 seed items in total.

* Add docs for recommendation bindings to the README
This commit is contained in:
HMH
2021-09-07 15:01:06 +02:00
committed by GitHub
parent 547cd6b0ef
commit d17c66f8ad
10 changed files with 166 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ pub trait ListItem: Sync + Send + 'static {
fn unsave(&mut self, library: Arc<Library>);
fn open(&self, queue: Arc<Queue>, library: Arc<Library>) -> Option<Box<dyn ViewExt>>;
fn open_recommendations(
&self,
&mut self,
_queue: Arc<Queue>,
_library: Arc<Library>,
) -> Option<Box<dyn ViewExt>> {