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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -98,7 +98,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1536569319";
var build = "1536610262";
var version = "3.25.1";
// Construct the script tag

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(
{},