diff options
-rw-r--r-- | apps/wps.c | 9 | ||||
-rw-r--r-- | docs/CUSTOM_WPS_FORMAT | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/wps.c b/apps/wps.c index 1db85d806c..4699ed30d8 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -547,6 +547,11 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string) | |||
547 | (id3->elapsed + ff_rewind_count) / 60000, | 547 | (id3->elapsed + ff_rewind_count) / 60000, |
548 | (id3->elapsed + ff_rewind_count) % 60000 / 1000); | 548 | (id3->elapsed + ff_rewind_count) % 60000 / 1000); |
549 | break; | 549 | break; |
550 | case 'r': /* Remaining Time in Song */ | ||
551 | snprintf(tmpbuf, sizeof(tmpbuf), "%d:%02d", | ||
552 | (id3->length - (id3->elapsed + ff_rewind_count)) / 60000, | ||
553 | (id3->length - (id3->elapsed + ff_rewind_count)) % 60000 / 1000); | ||
554 | break; | ||
550 | case 't': /* Total Time */ | 555 | case 't': /* Total Time */ |
551 | snprintf(tmpbuf, sizeof(tmpbuf), "%d:%02d", | 556 | snprintf(tmpbuf, sizeof(tmpbuf), "%d:%02d", |
552 | id3->length / 60000, | 557 | id3->length / 60000, |
@@ -1019,7 +1024,9 @@ static bool ffwd_rew(int button) | |||
1019 | if (!exit) | 1024 | if (!exit) |
1020 | button = button_get(true); | 1025 | button = button_get(true); |
1021 | } | 1026 | } |
1022 | 1027 | #ifdef CUSTOM_WPS | |
1028 | refresh_wps(true); | ||
1029 | #endif | ||
1023 | return usb; | 1030 | return usb; |
1024 | } | 1031 | } |
1025 | 1032 | ||
diff --git a/docs/CUSTOM_WPS_FORMAT b/docs/CUSTOM_WPS_FORMAT index 776135ba47..e4721bcce9 100644 --- a/docs/CUSTOM_WPS_FORMAT +++ b/docs/CUSTOM_WPS_FORMAT | |||
@@ -45,6 +45,7 @@ Playlist/Song Info Tags: | |||
45 | %pp : Playlist Position | 45 | %pp : Playlist Position |
46 | %pe : Playlist Total Entries | 46 | %pe : Playlist Total Entries |
47 | %pc : Current Time In Song | 47 | %pc : Current Time In Song |
48 | %pr : Remaining Time In Song | ||
48 | %pt : Total Track Time | 49 | %pt : Total Track Time |
49 | Other Tags: | 50 | Other Tags: |
50 | %% : Displays a % | 51 | %% : Displays a % |