summaryrefslogtreecommitdiff
path: root/apps/plugins/properties.c
diff options
context:
space:
mode:
authorJames D. Smith <smithjd15@gmail.com>2021-09-15 21:06:37 -0600
committerJames D. Smith <smithjd15@gmail.com>2021-09-15 21:57:21 -0600
commit7035e2e2b9c9899d67b90adbe061347e18124f10 (patch)
tree5de8843c0854889a6341a1400ca19707099f942f /apps/plugins/properties.c
parent3acbab15a183f712d8ed3b3a073c92dbf42c17fd (diff)
downloadrockbox-7035e2e2b9c9899d67b90adbe061347e18124f10.tar.gz
rockbox-7035e2e2b9c9899d67b90adbe061347e18124f10.zip
File properties plugin: Add year.
Change-Id: I160507a67354c775ca9695c7e71303fe16beb6db
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 07a953c432..620c08a332 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -39,6 +39,7 @@ char str_albumartist[MAX_PATH];
39char str_album[MAX_PATH]; 39char str_album[MAX_PATH];
40char str_genre[MAX_PATH]; 40char str_genre[MAX_PATH];
41char str_comment[MAX_PATH]; 41char str_comment[MAX_PATH];
42char str_year[MAX_PATH];
42char str_duration[32]; 43char str_duration[32];
43 44
44unsigned nseconds; 45unsigned nseconds;
@@ -62,6 +63,7 @@ static const unsigned char* const props_file[] =
62 ID2P(LANG_PROPERTIES_ALBUM), str_album, 63 ID2P(LANG_PROPERTIES_ALBUM), str_album,
63 ID2P(LANG_PROPERTIES_GENRE), str_genre, 64 ID2P(LANG_PROPERTIES_GENRE), str_genre,
64 ID2P(LANG_PROPERTIES_COMMENT), str_comment, 65 ID2P(LANG_PROPERTIES_COMMENT), str_comment,
66 ID2P(LANG_PROPERTIES_YEAR), str_year,
65 ID2P(LANG_PROPERTIES_DURATION), str_duration, 67 ID2P(LANG_PROPERTIES_DURATION), str_duration,
66}; 68};
67static const unsigned char* const props_dir[] = 69static const unsigned char* const props_dir[] =
@@ -139,7 +141,9 @@ static bool file_properties(const char* selected_file)
139 "%s", id3.genre_string ? id3.genre_string : ""); 141 "%s", id3.genre_string ? id3.genre_string : "");
140 rb->snprintf(str_comment, sizeof str_comment, 142 rb->snprintf(str_comment, sizeof str_comment,
141 "%s", id3.comment ? id3.comment : ""); 143 "%s", id3.comment ? id3.comment : "");
142 num_properties += 7; 144 rb->snprintf(str_year, sizeof str_year,
145 "%s", id3.year_string ? id3.year_string : "");
146 num_properties += 8;
143 147
144 if (dur > 0) 148 if (dur > 0)
145 { 149 {