1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-11-22 16:24:48 +00:00

Rearranged artist and album information in queue and search results.

This commit is contained in:
eb041592
2018-02-03 12:03:33 +01:00
parent 3fe7d9c44c
commit fe0277bfbe
4 changed files with 30 additions and 13 deletions

View File

@@ -480,8 +480,11 @@ char* mpd_get_artist(struct mpd_song const *song)
char *str;
str = (char *)mpd_song_get_tag(song, MPD_TAG_ARTIST, 0);
return str;
if (str == NULL) {
return "";
} else {
return str;
}
}
char* mpd_get_album(struct mpd_song const *song)
@@ -489,8 +492,11 @@ char* mpd_get_album(struct mpd_song const *song)
char *str;
str = (char *)mpd_song_get_tag(song, MPD_TAG_ALBUM, 0);
return str;
if (str == NULL) {
return "";
} else {
return str;
}
}
int mpd_put_state(char *buffer, int *current_song_id, unsigned *queue_version)