[spotify] Set the name for the starred playlist

This commit is contained in:
chme 2015-03-08 09:05:21 +01:00
parent 665c76de00
commit c984bcd157

View File

@ -596,7 +596,12 @@ spotify_playlist_save(sp_playlist *pl)
// sleep(1); // Primitive way of preventing database locking (the mutex wasn't working)
pli = db_pl_fetch_bypath(url);
snprintf(title, sizeof(title), "[s] %s", name);
// The starred playlist has an empty name, set it manually to "Starred"
if (*name == '\0')
snprintf(title, sizeof(title), "[s] Starred");
else
snprintf(title, sizeof(title), "[s] %s", name);
snprintf(virtual_path, PATH_MAX, "/spotify:/%s", title);