Search uses URI for added_from compatibility

This commit is contained in:
James Barnsley
2017-05-05 10:47:18 +12:00
parent 0894fe5109
commit af57e6f346
6 changed files with 18 additions and 22 deletions

View File

@ -375,8 +375,7 @@ const MopidyMiddleware = (function(){
store.dispatch(mopidyActions.enqueueURIsBatchDone())
store.dispatch(mopidyActions.enqueueUrisProcessor())
},
5000
//100
100
)
})
@ -452,6 +451,7 @@ const MopidyMiddleware = (function(){
instruct( socket, store, 'library.search', {query: {any: [action.query]}, uris: [action.uri_scheme]})
.then( response => {
if (response.length <= 0) return
if (typeof(response[0].tracks) === 'undefined') return
var tracks = response[0].tracks.splice(0,action.limit)