mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[spotify] Set the name for the starred playlist
This commit is contained in:
parent
665c76de00
commit
c984bcd157
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user