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

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -100,7 +100,7 @@
// Release details // Release details
// These are automatically injected to built HTML // These are automatically injected to built HTML
var build = "1568768768"; var build = "1569179319";
var version = "3.40.0"; var version = "3.40.0";
// Construct the script tag // Construct the script tag

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( .then(
(response) => { (response) => {
if (response.length > 0 && response[0].tracks !== undefined) { if (response.length > 0 && response[0].tracks !== undefined) {
@ -1298,7 +1298,7 @@ const MopidyMiddleware = (function () {
remaining: (action.data.uri_schemes.length) + 1, 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( .then(
(response) => { (response) => {
if (response.length > 0 && response[0].tracks !== undefined) { if (response.length > 0 && response[0].tracks !== undefined) {