Skip to content

Commit

Permalink
adjust naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Noiseko authored and NBonaparte committed Jun 1, 2018
1 parent e1064ba commit 19d5cda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/adapters/mpd.hpp
Expand Up @@ -64,7 +64,7 @@ namespace mpd {
operator bool();

string get_artist();
string get_albumartist();
string get_album_artist();
string get_album();
string get_title();
string get_date();
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/mpd.cpp
Expand Up @@ -85,7 +85,7 @@ namespace mpd {
return string{tag != nullptr ? tag : ""};
}

string mpdsong::get_albumartist() {
string mpdsong::get_album_artist() {
assert(m_song);
auto tag = mpd_song_get_tag(m_song.get(), MPD_TAG_ALBUM_ARTIST, 0);
return string{tag != nullptr ? tag : ""};
Expand Down
6 changes: 3 additions & 3 deletions src/modules/mpd.cpp
Expand Up @@ -206,7 +206,7 @@ namespace modules {
}

string artist;
string albumartist;
string album_artist;
string album;
string title;
string date;
Expand All @@ -224,7 +224,7 @@ namespace modules {

if (song && song.get()) {
artist = song->get_artist();
albumartist = song->get_albumartist();
album_artist = song->get_album_artist();
album = song->get_album();
title = song->get_title();
date = song->get_date();
Expand All @@ -238,7 +238,7 @@ namespace modules {
if (m_label_song) {
m_label_song->reset_tokens();
m_label_song->replace_token("%artist%", !artist.empty() ? artist : "untitled artist");
m_label_song->replace_token("%albumartist%", !albumartist.empty() ? albumartist : "untitled albumartist");
m_label_song->replace_token("%album-artist%", !album_artist.empty() ? album_artist : "untitled album artist");
m_label_song->replace_token("%album%", !album.empty() ? album : "untitled album");
m_label_song->replace_token("%title%", !title.empty() ? title : "untitled track");
m_label_song->replace_token("%date%", !date.empty() ? date : "unknown date");
Expand Down

0 comments on commit 19d5cda

Please sign in to comment.