song: song_get_url: fix "/" prefix for songs in music_root
This commit is contained in:
parent
2139d8bba8
commit
c641aabe33
|
@ -124,7 +124,7 @@ song_get_url(struct song *song, char *path_max_tmp)
|
||||||
assert(song != NULL);
|
assert(song != NULL);
|
||||||
assert(*song->url);
|
assert(*song->url);
|
||||||
|
|
||||||
if (!song->parent || !song->parent->path)
|
if (!song->parent || isRootDirectory(song->parent->path))
|
||||||
strcpy(path_max_tmp, song->url);
|
strcpy(path_max_tmp, song->url);
|
||||||
else
|
else
|
||||||
pfx_dir(path_max_tmp, song->url, strlen(song->url),
|
pfx_dir(path_max_tmp, song->url, strlen(song->url),
|
||||||
|
|
Loading…
Reference in New Issue