[spotify] Fix empty spotify playlists

This commit is contained in:
chme 2017-03-26 09:44:05 +02:00 committed by ejurgensen
parent cc29c617b0
commit 626c77046c

View File

@ -2166,9 +2166,9 @@ scan_playlisttracks(struct spotify_playlist *playlist, int plid)
if (stamp)
{
db_file_ping(id);
continue;
}
else
{
memset(&mfi, 0, sizeof(struct media_file_info));
mfi.id = id;
@ -2191,13 +2191,11 @@ scan_playlisttracks(struct spotify_playlist *playlist, int plid)
mfi.directory_id = dir_id;
library_add_media(&mfi);
free_mfi(&mfi, 1);
}
spotify_uri_register(track.uri);
cache_artwork_ping(track.uri, 1, 0);
free_mfi(&mfi, 1);
db_pl_add_item_bypath(plid, track.uri);
}
}