I’m using mopidy on arch linux with the spotify and youtube backends(possibly intending to add more later), and the ncmpcpp client. Both backends seem to work okay.
However, I can’t figure out how to restrict a search to only one of the backends. In probably 95% cases I only want to search spotify, because most of the music I listen to can be found there. Also, there’s a significant slowdown from searching youtube, as well a large amount of irrelevant search results.
From reading the mopidy documentation, and also the source code, it seems to me that the uri field in the search protocol command serves this function. ncmpcpp has no uri field for search, but it does have a “filename” field, which sends “file” to mopidy. Which, according to the code is an alias for “uri”.
However, when I make a search in my client for, say, artist: pink floyd, filename: spotify, I get no results.
Judging from the debug logs, it seems that mopidy, instead of dispatching to the right backend, simply attempts to search spotify, and complains about not finding a URI. Here is an excerpt from the logs:
This makes no sense to me. What am I missing?