summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames D. Smith <smithjd15@gmail.com>2021-09-15 20:27:31 -0600
committerJames D. Smith <smithjd15@gmail.com>2021-09-15 21:56:50 -0600
commit7882e093b23f186f089abb91c245787cc2e04a62 (patch)
treeeb74af454e23fe332d531e985e08db49aa701dc3
parent67c4231e34cd8147963a054c44a715f3413fb2e3 (diff)
downloadrockbox-7882e093b23f186f089abb91c245787cc2e04a62.tar.gz
rockbox-7882e093b23f186f089abb91c245787cc2e04a62.zip
File properties plugin: Add album artist.
Change-Id: I150e11ba309953959d374898a63d4250a90651bb
-rw-r--r--apps/lang/english.lang14
-rw-r--r--apps/plugins/properties.c6
2 files changed, 19 insertions, 1 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index 667d1239ca..2aa6480aa4 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -15954,3 +15954,17 @@
*: "Reload After Saving"
</voice>
</phrase>
+<phrase>
+ id: LANG_PROPERTIES_ALBUMARTIST
+ desc: in properties plugin
+ user: core
+ <source>
+ *: "[Album Artist]"
+ </source>
+ <dest>
+ *: "[Album Artist]"
+ </dest>
+ <voice>
+ *: "Album Artist"
+ </voice>
+</phrase>
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index 0fa83c0b56..5e2ab5101c 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -34,6 +34,7 @@ char str_time[64];
char str_title[MAX_PATH];
char str_artist[MAX_PATH];
+char str_albumartist[MAX_PATH];
char str_album[MAX_PATH];
char str_duration[32];
@@ -52,6 +53,7 @@ static const unsigned char* const props_file[] =
ID2P(LANG_PROPERTIES_DATE), str_date,
ID2P(LANG_PROPERTIES_TIME), str_time,
ID2P(LANG_PROPERTIES_ARTIST), str_artist,
+ ID2P(LANG_PROPERTIES_ALBUMARTIST), str_albumartist,
ID2P(LANG_PROPERTIES_TITLE), str_title,
ID2P(LANG_PROPERTIES_ALBUM), str_album,
ID2P(LANG_PROPERTIES_DURATION), str_duration,
@@ -119,11 +121,13 @@ static bool file_properties(const char* selected_file)
long dur = id3.length / 1000; /* seconds */
rb->snprintf(str_artist, sizeof str_artist,
"%s", id3.artist ? id3.artist : "");
+ rb->snprintf(str_albumartist, sizeof str_albumartist,
+ "%s", id3.albumartist ? id3.albumartist : "");
rb->snprintf(str_title, sizeof str_title,
"%s", id3.title ? id3.title : "");
rb->snprintf(str_album, sizeof str_album,
"%s", id3.album ? id3.album : "");
- num_properties += 3;
+ num_properties += 4;
if (dur > 0)
{