mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 00:23:23 -05:00
[spotify] Fix empty spotify playlists
This commit is contained in:
parent
cc29c617b0
commit
626c77046c
@ -2166,9 +2166,9 @@ scan_playlisttracks(struct spotify_playlist *playlist, int plid)
|
|||||||
if (stamp)
|
if (stamp)
|
||||||
{
|
{
|
||||||
db_file_ping(id);
|
db_file_ping(id);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
memset(&mfi, 0, sizeof(struct media_file_info));
|
memset(&mfi, 0, sizeof(struct media_file_info));
|
||||||
|
|
||||||
mfi.id = id;
|
mfi.id = id;
|
||||||
@ -2191,13 +2191,11 @@ scan_playlisttracks(struct spotify_playlist *playlist, int plid)
|
|||||||
mfi.directory_id = dir_id;
|
mfi.directory_id = dir_id;
|
||||||
|
|
||||||
library_add_media(&mfi);
|
library_add_media(&mfi);
|
||||||
|
free_mfi(&mfi, 1);
|
||||||
|
}
|
||||||
|
|
||||||
spotify_uri_register(track.uri);
|
spotify_uri_register(track.uri);
|
||||||
|
|
||||||
cache_artwork_ping(track.uri, 1, 0);
|
cache_artwork_ping(track.uri, 1, 0);
|
||||||
|
|
||||||
free_mfi(&mfi, 1);
|
|
||||||
|
|
||||||
db_pl_add_item_bypath(plid, track.uri);
|
db_pl_add_item_bypath(plid, track.uri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user