From f3874bda6404de75e431e7fa5004960a17be2c96 Mon Sep 17 00:00:00 2001 From: "James D. Smith" Date: Wed, 15 Sep 2021 20:43:16 -0600 Subject: File properties plugin: Add comment. Change-Id: If6b7650f858134098c3628f6e144e8c8d2a242ef --- apps/lang/english.lang | 14 ++++++++++++++ apps/plugins/properties.c | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/apps/lang/english.lang b/apps/lang/english.lang index fce95165f0..7d0d940b91 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -15982,3 +15982,17 @@ *: "Genre" + + id: LANG_PROPERTIES_COMMENT + desc: in properties plugin + user: core + + *: "[Comment]" + + + *: "[Comment]" + + + *: "Comment" + + diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index f94b3934c3..bc892a4464 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -37,6 +37,7 @@ char str_artist[MAX_PATH]; char str_albumartist[MAX_PATH]; char str_album[MAX_PATH]; char str_genre[MAX_PATH]; +char str_comment[MAX_PATH]; char str_duration[32]; unsigned nseconds; @@ -58,6 +59,7 @@ static const unsigned char* const props_file[] = ID2P(LANG_PROPERTIES_TITLE), str_title, ID2P(LANG_PROPERTIES_ALBUM), str_album, ID2P(LANG_PROPERTIES_GENRE), str_genre, + ID2P(LANG_PROPERTIES_COMMENT), str_comment, ID2P(LANG_PROPERTIES_DURATION), str_duration, }; static const unsigned char* const props_dir[] = @@ -131,7 +133,9 @@ static bool file_properties(const char* selected_file) "%s", id3.album ? id3.album : ""); rb->snprintf(str_genre, sizeof str_genre, "%s", id3.genre_string ? id3.genre_string : ""); - num_properties += 5; + rb->snprintf(str_comment, sizeof str_comment, + "%s", id3.comment ? id3.comment : ""); + num_properties += 6; if (dur > 0) { -- cgit v1.2.3