Searching for tracks only uses , fixes #409
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -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
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user