diff options
author | James D. Smith <smithjd15@gmail.com> | 2021-09-15 21:18:12 -0600 |
---|---|---|
committer | James D. Smith <smithjd15@gmail.com> | 2021-09-15 21:57:28 -0600 |
commit | 5ddfd37a8cdc127f7d03a6caff27ee124fb93268 (patch) | |
tree | a9f1d7b160aba0d808dac010ee06a9b6c0452ca9 /apps/plugins/properties.c | |
parent | 7035e2e2b9c9899d67b90adbe061347e18124f10 (diff) | |
download | rockbox-5ddfd37a8cdc127f7d03a6caff27ee124fb93268.tar.gz rockbox-5ddfd37a8cdc127f7d03a6caff27ee124fb93268.zip |
File properties plugin: Add track.
Change-Id: Id8707dc28bf3a9c029066bb55ff584662b2cee6b
Diffstat (limited to 'apps/plugins/properties.c')
-rw-r--r-- | apps/plugins/properties.c | 6 |
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]; char str_genre[MAX_PATH]; char str_comment[MAX_PATH]; char str_year[MAX_PATH]; +char str_tracknum[MAX_PATH]; char str_duration[32]; unsigned nseconds; @@ -64,6 +65,7 @@ static const unsigned char* const props_file[] = ID2P(LANG_PROPERTIES_GENRE), str_genre, ID2P(LANG_PROPERTIES_COMMENT), str_comment, ID2P(LANG_PROPERTIES_YEAR), str_year, + ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum, ID2P(LANG_PROPERTIES_DURATION), str_duration, }; static const unsigned char* const props_dir[] = @@ -143,7 +145,9 @@ static bool file_properties(const char* selected_file) "%s", id3.comment ? id3.comment : ""); rb->snprintf(str_year, sizeof str_year, "%s", id3.year_string ? id3.year_string : ""); - num_properties += 8; + rb->snprintf(str_tracknum, sizeof str_tracknum, + "%s", id3.track_string ? id3.track_string : ""); + num_properties += 9; if (dur > 0) { |