summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c9
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;