simplify code responsible for parsing song formats
functions MPD::Song::toString() and Display::Songs were almost identical. for now the latter uses MPD::Song::toString() implementation, which also has been simplified.
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
## %p - performer
|
||||
## %d - disc
|
||||
## %C - comment
|
||||
## %r - begin right align
|
||||
## $R - begin right alignment
|
||||
##
|
||||
## you can also put them in { } and then it will be displayed
|
||||
## only if all requested values are available and/or define alternate
|
||||
@@ -77,7 +77,7 @@
|
||||
## Note: colors can be nested.
|
||||
##
|
||||
#
|
||||
#song_list_format = "{%a - }{%t}|{$8%f$9}%r{$3(%l)$9}"
|
||||
#song_list_format = "{%a - }{%t}|{$8%f$9}$R{$3(%l)$9}"
|
||||
#
|
||||
#song_status_format = "{(%l) }{%a - }{%t}|{%f}"
|
||||
#
|
||||
|
||||
@@ -280,7 +280,7 @@ For song format you can use:
|
||||
%p - performer
|
||||
%d - disc
|
||||
%C - comment
|
||||
%r - begin right alignment
|
||||
$R - begin right alignment
|
||||
|
||||
You can also put them in { } and then they will be displayed only if all requested values are available and/or define alternate value with { }|{ } e.g. {%a - %t}|{%f} will check if artist and title tags are available and if they are, display them. Otherwise it'll display filename.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user