diff options
author | Justin Heiner <jheiner@rockbox.org> | 2002-08-22 04:03:57 +0000 |
---|---|---|
committer | Justin Heiner <jheiner@rockbox.org> | 2002-08-22 04:03:57 +0000 |
commit | 70a203341f6f6c691e9c4abecbe7096d29995807 (patch) | |
tree | bd1a90c97f99264835a933937c9d7c3a3296a299 /apps/wps.c | |
parent | a27f5d7bd1b14b432e7307af5beee7deb5cb4b70 (diff) | |
download | rockbox-70a203341f6f6c691e9c4abecbe7096d29995807.tar.gz rockbox-70a203341f6f6c691e9c4abecbe7096d29995807.zip |
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
Diffstat (limited to 'apps/wps.c')
-rw-r--r-- | apps/wps.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/wps.c b/apps/wps.c index f601865bcd..c4b027cbc3 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -282,6 +282,15 @@ int wps_load_custom_config(void) | |||
282 | snprintf(tmpbuf, sizeof(tmpbuf), "%s", | 282 | snprintf(tmpbuf, sizeof(tmpbuf), "%s", |
283 | szLast?++szLast:id3->path); | 283 | szLast?++szLast:id3->path); |
284 | break; | 284 | break; |
285 | case 'h': /* Conditional Filename \ ID3 Title-Artist */ | ||
286 | if(id3->artist && id3->title) | ||
287 | snprintf(tmpbuf, sizeof(tmpbuf), "%s - %s", | ||
288 | id3->title?id3->title:"<no title>"); | ||
289 | id3->artist?id3->artist:"<no artist>", | ||
290 | else | ||
291 | snprintf(tmpbuf, sizeof(tmpbuf), "%s", | ||
292 | szLast?++szLast:id3->path); | ||
293 | break; | ||
285 | case 'b': /* File Bitrate */ | 294 | case 'b': /* File Bitrate */ |
286 | snprintf(tmpbuf, sizeof(tmpbuf), "%d", id3->bitrate); | 295 | snprintf(tmpbuf, sizeof(tmpbuf), "%d", id3->bitrate); |
287 | break; | 296 | break; |