fix(mpd): Default tag values
This commit is contained in:
parent
89ea8d9146
commit
006f3f8efd
@ -188,9 +188,9 @@ bool MpdModule::update()
|
||||
|
||||
if (this->label_song) {
|
||||
this->label_song_tokenized->text = this->label_song->text;
|
||||
this->label_song_tokenized->replace_token("%artist%", artist);
|
||||
this->label_song_tokenized->replace_token("%album%", album);
|
||||
this->label_song_tokenized->replace_token("%title%", title);
|
||||
this->label_song_tokenized->replace_token("%artist%", !artist.empty() ? artist : "untitled artist");
|
||||
this->label_song_tokenized->replace_token("%album%", !album.empty() ? album : "untitled album");
|
||||
this->label_song_tokenized->replace_token("%title%", !title.empty() ? title : "untitled track");
|
||||
}
|
||||
|
||||
if (this->label_time) {
|
||||
|
Loading…
Reference in New Issue
Block a user