Using mopidy image processor

This commit is contained in:
James Barnsley
2017-10-11 08:46:30 +13:00
parent 25a4a99b2d
commit ebe6c90168
2 changed files with 6 additions and 23 deletions

View File

@ -1735,13 +1735,12 @@ const MopidyMiddleware = (function(){
instruct(socket, store, 'library.getImages', {uris: action.uris})
.then(response => {
let records = []
var records = []
for (var uri in response){
if (response.hasOwnProperty(uri)){
let images = response[uri]
images = helpers.digestMopidyImages(store.getState().mopidy, images)
var images = response[uri];
images = helpers.digestMopidyImages(store.getState().mopidy, images);
records.push({
uri: uri,
images: images
@ -1749,7 +1748,7 @@ const MopidyMiddleware = (function(){
}
}
let action_data = {
var action_data = {
type: (action.context+'_LOADED').toUpperCase()
}
action_data[action.context] = records