diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lang/english.lang | 14 | ||||
-rw-r--r-- | apps/plugins/properties.c | 6 |
2 files changed, 19 insertions, 1 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang index 7d0d940b91..0f5bf23e9a 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang | |||
@@ -15996,3 +15996,17 @@ | |||
15996 | *: "Comment" | 15996 | *: "Comment" |
15997 | </voice> | 15997 | </voice> |
15998 | </phrase> | 15998 | </phrase> |
15999 | <phrase> | ||
16000 | id: LANG_PROPERTIES_COMPOSER | ||
16001 | desc: in properties plugin | ||
16002 | user: core | ||
16003 | <source> | ||
16004 | *: "[Composer]" | ||
16005 | </source> | ||
16006 | <dest> | ||
16007 | *: "[Composer]" | ||
16008 | </dest> | ||
16009 | <voice> | ||
16010 | *: "Composer" | ||
16011 | </voice> | ||
16012 | </phrase> | ||
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]; | |||
33 | char str_time[64]; | 33 | char str_time[64]; |
34 | 34 | ||
35 | char str_title[MAX_PATH]; | 35 | char str_title[MAX_PATH]; |
36 | char str_composer[MAX_PATH]; | ||
36 | char str_artist[MAX_PATH]; | 37 | char str_artist[MAX_PATH]; |
37 | char str_albumartist[MAX_PATH]; | 38 | char str_albumartist[MAX_PATH]; |
38 | char str_album[MAX_PATH]; | 39 | char 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 | { |