Accepting album and artist search result containers, fixes #244

This commit is contained in:
James Barnsley
2018-01-01 23:23:06 +13:00
parent 7a2273441b
commit 5f8789210f
5 changed files with 56 additions and 41 deletions

View File

@ -867,6 +867,7 @@ const MopidyMiddleware = (function(){
instruct(socket, store, 'library.search', {query: {any: [action.data.query]}, uris: [action.data.uri_scheme]})
.then(
response => {
console.log(response)
if (response.length > 0 && response[0].tracks !== undefined){
var tracks = response[0].tracks