Lazy loader; Filter on album library
This commit is contained in:
@ -866,7 +866,7 @@ const MopidyMiddleware = (function(){
|
||||
var album = Object.assign(
|
||||
{},
|
||||
{
|
||||
is_mopidy: true,
|
||||
source: 'local',
|
||||
artists: response[uri][0].artists,
|
||||
tracks: response[uri],
|
||||
tracks_total: response[uri].length
|
||||
@ -895,7 +895,7 @@ const MopidyMiddleware = (function(){
|
||||
{ images: [] },
|
||||
response[0].album,
|
||||
{
|
||||
is_mopidy: true,
|
||||
source: 'local',
|
||||
artists: response[0].artists,
|
||||
tracks: response,
|
||||
tracks_total: response.length
|
||||
|
||||
@ -250,6 +250,7 @@ const SpotifyMiddleware = (function(){
|
||||
{},
|
||||
action.data.artists.items[i],
|
||||
{
|
||||
source: 'spotify',
|
||||
in_library: true // assumed because we asked for library items
|
||||
}
|
||||
)
|
||||
@ -276,6 +277,7 @@ const SpotifyMiddleware = (function(){
|
||||
action.data.items[i].album,
|
||||
{
|
||||
in_library: true, // assumed because we asked for library items
|
||||
source: 'spotify',
|
||||
added_at: action.data.items[i].added_at,
|
||||
tracks: action.data.items[i].album.tracks.items,
|
||||
tracks_more: action.data.items[i].album.tracks.next,
|
||||
|
||||
Reference in New Issue
Block a user