mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
refactor(mpd): Keep tag getters consistent
This commit is contained in:
parent
5737156ae5
commit
d4d571425d
1 changed files with 1 additions and 4 deletions
|
@ -69,10 +69,7 @@ namespace mpd {
|
||||||
string mpdsong::get_artist() {
|
string mpdsong::get_artist() {
|
||||||
assert(m_song);
|
assert(m_song);
|
||||||
auto tag = mpd_song_get_tag(m_song.get(), MPD_TAG_ARTIST, 0);
|
auto tag = mpd_song_get_tag(m_song.get(), MPD_TAG_ARTIST, 0);
|
||||||
if (tag == nullptr) {
|
return string{tag != nullptr ? tag : ""};
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return string{tag};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
string mpdsong::get_album() {
|
string mpdsong::get_album() {
|
||||||
|
|
Loading…
Reference in a new issue