diff options
-rw-r--r-- | playlist.c | 3 | ||||
-rw-r--r-- | plugins/gtkui/deadbeef.glade | 5 | ||||
-rw-r--r-- | plugins/gtkui/interface.c | 2 |
3 files changed, 7 insertions, 3 deletions
@@ -2312,6 +2312,9 @@ pl_format_title (playItem_t *it, int idx, char *s, int size, int id, const char else if (*fmt == 'n') { meta = pl_find_meta (it, "track"); } + else if (*fmt == 'N') { + meta = pl_find_meta (it, "numtracks"); + } else if (*fmt == 'y') { meta = pl_find_meta (it, "year"); } diff --git a/plugins/gtkui/deadbeef.glade b/plugins/gtkui/deadbeef.glade index 28dd63a1..803193c9 100644 --- a/plugins/gtkui/deadbeef.glade +++ b/plugins/gtkui/deadbeef.glade @@ -1849,9 +1849,10 @@ Right</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Format conversions (start with %): - [a]rtist, [t]itle, al[b]um, track[n]umber, + [a]rtist, [t]itle, al[b]um, [B]and, + track[n]umber, [N]totaltracks, [l]ength, [y]ear, [g]enre, [c]omment, - copy[r]ight, [f]ilename, [T]ags, [B]and + copy[r]ight, [f]ilename, [T]ags Example: %a - %t [%l]</property> <property name="use_underline">False</property> <property name="use_markup">True</property> diff --git a/plugins/gtkui/interface.c b/plugins/gtkui/interface.c index f35a71ab..7cbe60f4 100644 --- a/plugins/gtkui/interface.c +++ b/plugins/gtkui/interface.c @@ -1347,7 +1347,7 @@ create_editcolumndlg (void) gtk_combo_box_append_text (GTK_COMBO_BOX (align), "Left"); gtk_combo_box_append_text (GTK_COMBO_BOX (align), "Right"); - label25 = gtk_label_new ("Format conversions (start with %):\n [a]rtist, [t]itle, al[b]um, track[n]umber,\n [l]ength, [y]ear, [g]enre, [c]omment,\n copy[r]ight, [f]ilename, [T]ags, [B]and\nExample: %a - %t [%l]"); + label25 = gtk_label_new ("Format conversions (start with %):\n [a]rtist, [t]itle, al[b]um, [B]and,\n track[n]umber, [N]totaltracks,\n [l]ength, [y]ear, [g]enre, [c]omment,\n copy[r]ight, [f]ilename, [T]ags\nExample: %a - %t [%l]"); gtk_widget_show (label25); gtk_box_pack_start (GTK_BOX (vbox14), label25, TRUE, TRUE, 0); GTK_WIDGET_SET_FLAGS (label25, GTK_CAN_FOCUS); |