diff options
author | James D. Smith <smithjd15@gmail.com> | 2021-09-15 20:43:16 -0600 |
---|---|---|
committer | James D. Smith <smithjd15@gmail.com> | 2021-09-15 21:57:06 -0600 |
commit | f3874bda6404de75e431e7fa5004960a17be2c96 (patch) | |
tree | 0c7bf2c579817ba24efa976b55719b328baf5fc1 /apps | |
parent | f971200cee447c655e816ecbbfcca850eb8ee7af (diff) | |
download | rockbox-f3874bda6404de75e431e7fa5004960a17be2c96.tar.gz rockbox-f3874bda6404de75e431e7fa5004960a17be2c96.zip |
File properties plugin: Add comment.
Change-Id: If6b7650f858134098c3628f6e144e8c8d2a242ef
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 fce95165f0..7d0d940b91 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang | |||
@@ -15982,3 +15982,17 @@ | |||
15982 | *: "Genre" | 15982 | *: "Genre" |
15983 | </voice> | 15983 | </voice> |
15984 | </phrase> | 15984 | </phrase> |
15985 | <phrase> | ||
15986 | id: LANG_PROPERTIES_COMMENT | ||
15987 | desc: in properties plugin | ||
15988 | user: core | ||
15989 | <source> | ||
15990 | *: "[Comment]" | ||
15991 | </source> | ||
15992 | <dest> | ||
15993 | *: "[Comment]" | ||
15994 | </dest> | ||
15995 | <voice> | ||
15996 | *: "Comment" | ||
15997 | </voice> | ||
15998 | </phrase> | ||
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]; | |||
37 | char str_albumartist[MAX_PATH]; | 37 | char str_albumartist[MAX_PATH]; |
38 | char str_album[MAX_PATH]; | 38 | char str_album[MAX_PATH]; |
39 | char str_genre[MAX_PATH]; | 39 | char str_genre[MAX_PATH]; |
40 | char str_comment[MAX_PATH]; | ||
40 | char str_duration[32]; | 41 | char str_duration[32]; |
41 | 42 | ||
42 | unsigned nseconds; | 43 | unsigned nseconds; |
@@ -58,6 +59,7 @@ static const unsigned char* const props_file[] = | |||
58 | ID2P(LANG_PROPERTIES_TITLE), str_title, | 59 | ID2P(LANG_PROPERTIES_TITLE), str_title, |
59 | ID2P(LANG_PROPERTIES_ALBUM), str_album, | 60 | ID2P(LANG_PROPERTIES_ALBUM), str_album, |
60 | ID2P(LANG_PROPERTIES_GENRE), str_genre, | 61 | ID2P(LANG_PROPERTIES_GENRE), str_genre, |
62 | ID2P(LANG_PROPERTIES_COMMENT), str_comment, | ||
61 | ID2P(LANG_PROPERTIES_DURATION), str_duration, | 63 | ID2P(LANG_PROPERTIES_DURATION), str_duration, |
62 | }; | 64 | }; |
63 | static const unsigned char* const props_dir[] = | 65 | static const unsigned char* const props_dir[] = |
@@ -131,7 +133,9 @@ static bool file_properties(const char* selected_file) | |||
131 | "%s", id3.album ? id3.album : ""); | 133 | "%s", id3.album ? id3.album : ""); |
132 | rb->snprintf(str_genre, sizeof str_genre, | 134 | rb->snprintf(str_genre, sizeof str_genre, |
133 | "%s", id3.genre_string ? id3.genre_string : ""); | 135 | "%s", id3.genre_string ? id3.genre_string : ""); |
134 | num_properties += 5; | 136 | rb->snprintf(str_comment, sizeof str_comment, |
137 | "%s", id3.comment ? id3.comment : ""); | ||
138 | num_properties += 6; | ||
135 | 139 | ||
136 | if (dur > 0) | 140 | if (dur > 0) |
137 | { | 141 | { |