diff options
author | James D. Smith <smithjd15@gmail.com> | 2021-09-15 21:21:38 -0600 |
---|---|---|
committer | James D. Smith <smithjd15@gmail.com> | 2021-09-16 17:52:53 -0600 |
commit | 41e471e50e2d5b84c091f0574c0a0ee768092653 (patch) | |
tree | cbaad722f83165c1efba923b5cefcb271362ac09 | |
parent | 5ddfd37a8cdc127f7d03a6caff27ee124fb93268 (diff) |
File properties plugin: Add disc number.
Change-Id: I98c9ccdffdaae8c5c9117212365ae82b9bf2147c
-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 2083faf890..d73f555ebb 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -16038,3 +16038,17 @@ *: "Track number" </voice> </phrase> +<phrase> + id: LANG_PROPERTIES_DISCNUM + desc: in properties plugin + user: core + <source> + *: "[Discnum]" + </source> + <dest> + *: "[Discnum]" + </dest> + <voice> + *: "Disc number" + </voice> +</phrase> diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index b3955a286a..e2c83217a4 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -40,6 +40,7 @@ char str_album[MAX_PATH]; char str_genre[MAX_PATH]; char str_comment[MAX_PATH]; char str_year[MAX_PATH]; +char str_discnum[MAX_PATH]; char str_tracknum[MAX_PATH]; char str_duration[32]; @@ -65,6 +66,7 @@ static const unsigned char* const props_file[] = ID2P(LANG_PROPERTIES_GENRE), str_genre, ID2P(LANG_PROPERTIES_COMMENT), str_comment, ID2P(LANG_PROPERTIES_YEAR), str_year, + ID2P(LANG_PROPERTIES_DISCNUM), str_discnum, ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum, ID2P(LANG_PROPERTIES_DURATION), str_duration, }; @@ -145,9 +147,11 @@ static bool file_properties(const char* selected_file) "%s", id3.comment ? id3.comment : ""); rb->snprintf(str_year, sizeof str_year, "%s", id3.year_string ? id3.year_string : ""); + rb->snprintf(str_discnum, sizeof str_discnum, + "%s", id3.disc_string ? id3.disc_string : ""); rb->snprintf(str_tracknum, sizeof str_tracknum, "%s", id3.track_string ? id3.track_string : ""); - num_properties += 9; + num_properties += 10; if (dur > 0) { |