summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJames D. Smith <smithjd15@gmail.com>2021-09-15 21:18:12 -0600
committerJames D. Smith <smithjd15@gmail.com>2021-09-15 21:57:28 -0600
commit5ddfd37a8cdc127f7d03a6caff27ee124fb93268 (patch)
treea9f1d7b160aba0d808dac010ee06a9b6c0452ca9 /apps/plugins
parent7035e2e2b9c9899d67b90adbe061347e18124f10 (diff)
downloadrockbox-5ddfd37a8cdc127f7d03a6caff27ee124fb93268.tar.gz
rockbox-5ddfd37a8cdc127f7d03a6caff27ee124fb93268.zip
File properties plugin: Add track.
Change-Id: Id8707dc28bf3a9c029066bb55ff584662b2cee6b
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/properties.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index 620c08a332..b3955a286a 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -40,6 +40,7 @@ char str_album[MAX_PATH];
40char str_genre[MAX_PATH]; 40char str_genre[MAX_PATH];
41char str_comment[MAX_PATH]; 41char str_comment[MAX_PATH];
42char str_year[MAX_PATH]; 42char str_year[MAX_PATH];
43char str_tracknum[MAX_PATH];
43char str_duration[32]; 44char str_duration[32];
44 45
45unsigned nseconds; 46unsigned nseconds;
@@ -64,6 +65,7 @@ static const unsigned char* const props_file[] =
64 ID2P(LANG_PROPERTIES_GENRE), str_genre, 65 ID2P(LANG_PROPERTIES_GENRE), str_genre,
65 ID2P(LANG_PROPERTIES_COMMENT), str_comment, 66 ID2P(LANG_PROPERTIES_COMMENT), str_comment,
66 ID2P(LANG_PROPERTIES_YEAR), str_year, 67 ID2P(LANG_PROPERTIES_YEAR), str_year,
68 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum,
67 ID2P(LANG_PROPERTIES_DURATION), str_duration, 69 ID2P(LANG_PROPERTIES_DURATION), str_duration,
68}; 70};
69static const unsigned char* const props_dir[] = 71static const unsigned char* const props_dir[] =
@@ -143,7 +145,9 @@ static bool file_properties(const char* selected_file)
143 "%s", id3.comment ? id3.comment : ""); 145 "%s", id3.comment ? id3.comment : "");
144 rb->snprintf(str_year, sizeof str_year, 146 rb->snprintf(str_year, sizeof str_year,
145 "%s", id3.year_string ? id3.year_string : ""); 147 "%s", id3.year_string ? id3.year_string : "");
146 num_properties += 8; 148 rb->snprintf(str_tracknum, sizeof str_tracknum,
149 "%s", id3.track_string ? id3.track_string : "");
150 num_properties += 9;
147 151
148 if (dur > 0) 152 if (dur > 0)
149 { 153 {