From c984bcd1576553679620df655a26a0cabc288199 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 8 Mar 2015 09:05:21 +0100 Subject: [PATCH] [spotify] Set the name for the starred playlist --- src/spotify.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/spotify.c b/src/spotify.c index 7e79f3e2..72b4d3d3 100644 --- a/src/spotify.c +++ b/src/spotify.c @@ -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);