Library albums loading again
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
||||
@ -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(
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user