From 5ddfd37a8cdc127f7d03a6caff27ee124fb93268 Mon Sep 17 00:00:00 2001 From: "James D. Smith" Date: Wed, 15 Sep 2021 21:18:12 -0600 Subject: File properties plugin: Add track. Change-Id: Id8707dc28bf3a9c029066bb55ff584662b2cee6b --- apps/plugins/properties.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/plugins') 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) { -- cgit v1.2.3