summaryrefslogtreecommitdiff
path: root/apps/plugins/properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/properties.c')
-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 bc892a4464..07a953c432 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -33,6 +33,7 @@ char str_date[64];
33char str_time[64]; 33char str_time[64];
34 34
35char str_title[MAX_PATH]; 35char str_title[MAX_PATH];
36char str_composer[MAX_PATH];
36char str_artist[MAX_PATH]; 37char str_artist[MAX_PATH];
37char str_albumartist[MAX_PATH]; 38char str_albumartist[MAX_PATH];
38char str_album[MAX_PATH]; 39char str_album[MAX_PATH];
@@ -54,6 +55,7 @@ static const unsigned char* const props_file[] =
54 ID2P(LANG_PROPERTIES_SIZE), str_size, 55 ID2P(LANG_PROPERTIES_SIZE), str_size,
55 ID2P(LANG_PROPERTIES_DATE), str_date, 56 ID2P(LANG_PROPERTIES_DATE), str_date,
56 ID2P(LANG_PROPERTIES_TIME), str_time, 57 ID2P(LANG_PROPERTIES_TIME), str_time,
58 ID2P(LANG_PROPERTIES_COMPOSER), str_composer,
57 ID2P(LANG_PROPERTIES_ARTIST), str_artist, 59 ID2P(LANG_PROPERTIES_ARTIST), str_artist,
58 ID2P(LANG_PROPERTIES_ALBUMARTIST), str_albumartist, 60 ID2P(LANG_PROPERTIES_ALBUMARTIST), str_albumartist,
59 ID2P(LANG_PROPERTIES_TITLE), str_title, 61 ID2P(LANG_PROPERTIES_TITLE), str_title,
@@ -123,6 +125,8 @@ static bool file_properties(const char* selected_file)
123 rb->get_metadata(&id3, fd, selected_file)) 125 rb->get_metadata(&id3, fd, selected_file))
124 { 126 {
125 long dur = id3.length / 1000; /* seconds */ 127 long dur = id3.length / 1000; /* seconds */
128 rb->snprintf(str_composer, sizeof str_composer,
129 "%s", id3.composer ? id3.composer : "");
126 rb->snprintf(str_artist, sizeof str_artist, 130 rb->snprintf(str_artist, sizeof str_artist,
127 "%s", id3.artist ? id3.artist : ""); 131 "%s", id3.artist ? id3.artist : "");
128 rb->snprintf(str_albumartist, sizeof str_albumartist, 132 rb->snprintf(str_albumartist, sizeof str_albumartist,
@@ -135,7 +139,7 @@ static bool file_properties(const char* selected_file)
135 "%s", id3.genre_string ? id3.genre_string : ""); 139 "%s", id3.genre_string ? id3.genre_string : "");
136 rb->snprintf(str_comment, sizeof str_comment, 140 rb->snprintf(str_comment, sizeof str_comment,
137 "%s", id3.comment ? id3.comment : ""); 141 "%s", id3.comment ? id3.comment : "");
138 num_properties += 6; 142 num_properties += 7;
139 143
140 if (dur > 0) 144 if (dur > 0)
141 { 145 {