Searching for tracks only uses , fixes #409

This commit is contained in:
James Barnsley
2019-09-23 07:14:39 +12:00
parent 5d30347f28
commit 0a7b7f373e
4 changed files with 5452 additions and 9967 deletions

View File

@ -1253,7 +1253,7 @@ const MopidyMiddleware = (function () {
));
};
request(socket, store, 'library.search', { query: { any: [action.data.query] }, uris: [action.data.uri_scheme] })
request(socket, store, 'library.search', { query: { track_title: [action.data.query] }, uris: [action.data.uri_scheme] })
.then(
(response) => {
if (response.length > 0 && response[0].tracks !== undefined) {
@ -1298,7 +1298,7 @@ const MopidyMiddleware = (function () {
remaining: (action.data.uri_schemes.length) + 1,
},
));
request(socket, store, 'library.search', { query: { any: [action.data.query] }, uris: [action.data.uri_scheme] })
request(socket, store, 'library.search', { query: { track_name: [action.data.query] }, uris: [action.data.uri_scheme] })
.then(
(response) => {
if (response.length > 0 && response[0].tracks !== undefined) {