summaryrefslogtreecommitdiffstats
path: root/apps/metadata/mp3.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/mp3.c')
-rw-r--r--apps/metadata/mp3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/metadata/mp3.c b/apps/metadata/mp3.c
index c65fb39cd8..d20dffeb27 100644
--- a/apps/metadata/mp3.c
+++ b/apps/metadata/mp3.c
@@ -190,7 +190,11 @@ bool get_mp3_metadata(int fd, struct mp3entry *entry, const char *filename)
/* only seek to end of file if no id3v2 tags were found */
if (!entry->id3v2len) {
- setid3v1title(fd, entry);
+ if (!setid3v1title(fd, entry))
+ {
+ /* when ID3 tags are not found, search APE tags */
+ read_ape_tags(fd, entry);
+ }
}
if(!entry->length || (entry->filesize < 8 ))