Library albums loading again

This commit is contained in:
James Barnsley
2018-09-11 20:30:19 +12:00
parent cc1dfee7d1
commit eed201925b
4 changed files with 13942 additions and 10659 deletions

View File

@ -1748,7 +1748,9 @@ const MopidyMiddleware = (function(){
case 'MOPIDY_GET_ALBUMS':
request(socket, store, 'library.lookup', { uris: action.uris } )
.then(response => {
if (response.length <= 0) return
if (response.length <= 0){
return;
}
var albums_loaded = [];
var artists_loaded = [];
@ -1765,9 +1767,11 @@ const MopidyMiddleware = (function(){
var tracks_uris = [];
for (var track in response[uri]){
tracks_loaded.push(helpers.track);
tracks_loaded.push(track);
tracks_uris.push(track.uri);
}
console.log(response[uri]);
var album = Object.assign(
{},