mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 13:45:03 -05:00
Added conditional Title-Artist to appease PsycoXul :-) It's bound to %h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1913 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a27f5d7bd1
commit
70a203341f
2 changed files with 13 additions and 0 deletions
|
|
@ -282,6 +282,15 @@ int wps_load_custom_config(void)
|
|||
snprintf(tmpbuf, sizeof(tmpbuf), "%s",
|
||||
szLast?++szLast:id3->path);
|
||||
break;
|
||||
case 'h': /* Conditional Filename \ ID3 Title-Artist */
|
||||
if(id3->artist && id3->title)
|
||||
snprintf(tmpbuf, sizeof(tmpbuf), "%s - %s",
|
||||
id3->title?id3->title:"<no title>");
|
||||
id3->artist?id3->artist:"<no artist>",
|
||||
else
|
||||
snprintf(tmpbuf, sizeof(tmpbuf), "%s",
|
||||
szLast?++szLast:id3->path);
|
||||
break;
|
||||
case 'b': /* File Bitrate */
|
||||
snprintf(tmpbuf, sizeof(tmpbuf), "%d", id3->bitrate);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ Tags
|
|||
%c : Conditional Title/Filename
|
||||
Displays "Artist - Title" *or*
|
||||
Displays Filename if no ID3 Artist/Title
|
||||
%h : Conditional Title/Filename
|
||||
Displays "Title - Artist" *or*
|
||||
Displays Filename if no ID3 Artist/Title
|
||||
%b : File Bitrate
|
||||
%f : File Frequency
|
||||
%p : File Path
|
||||
|
|
@ -33,6 +36,7 @@ Tags
|
|||
%l : Playlist Total Entries
|
||||
%e : Elapsed Track Time
|
||||
%o : Total Track Time
|
||||
%% : Displays a %
|
||||
|
||||
Example wps.config File
|
||||
-----------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue