Rollback #409, fixes #455

This commit is contained in:
James Barnsley
2019-11-15 10:01:36 +13:00
parent eb226c030e
commit f5db13f17c
6 changed files with 9913 additions and 5400 deletions

View File

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