Skip to content

Commit

Permalink
strfsong: drop duplicate "%" around "%label%"
Browse files Browse the repository at this point in the history
Fixes bad commit f64f116
  • Loading branch information
MaxKellermann committed Sep 23, 2024
1 parent 9c9b83e commit 4f8476c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ncmpc 0.51 - not yet released
* repaint main area after terminal was resized
* pressing Enter while in "jump mode" activates selected item
* format: fix "%label%" expansion
* fix crash in new text input dialog
* fix crash on song info page
* require libmpdclient 2.19 or newer
Expand Down
2 changes: 1 addition & 1 deletion src/strfsong.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ _strfsong(char *const s0, char *const end,
tag = MPD_TAG_WORK;
else if (name == "grouping"sv)
tag = MPD_TAG_GROUPING;
else if (strncmp("%label%", p, n) == 0)
else if (strncmp("label", p, n) == 0)
tag = MPD_TAG_LABEL;
else if (name == "title"sv)
tag = MPD_TAG_TITLE;
Expand Down

0 comments on commit 4f8476c

Please sign in to comment.