Local playlists and uri encoding

This commit is contained in:
James Barnsley
2019-01-30 21:30:26 +13:00
parent fb9cea5cde
commit c370ae1699
7 changed files with 41 additions and 7 deletions

View File

@ -696,8 +696,14 @@ const CoreMiddleware = (function(){
}
}
// Already have this playlist partially in our index
if (playlists_index[playlist.uri]){
playlist = Object.assign({}, playlists_index[playlist.uri], playlist);
// Setup placeholder tracks_uris
if (playlist.tracks_uris === undefined){
playlist.tracks_uris = [];
}
}
// Load our tracks