Fix multiple id3v2.4 genres appearing as one big concatenated genre

This commit is contained in:
Deluan
2021-07-19 10:15:52 -04:00
committed by Deluan Quintão
parent 69f71be98a
commit 2742977c63
5 changed files with 9 additions and 20 deletions
+5 -7
View File
@@ -32,13 +32,11 @@ func (e *taglibExtractor) extractMetadata(filePath string) (*Tags, error) {
}
tags := NewTags(filePath, parsedTags, map[string][]string{
"title": {"_track", "titlesort"},
"album": {"_album", "albumsort"},
"artist": {"_artist", "artistsort"},
"genre": {"_genre"},
"date": {"_year"},
"track": {"_track"},
"duration": {"length"},
"title": {"_track", "titlesort"},
"album": {"_album", "albumsort"},
"artist": {"_artist", "artistsort"},
"date": {"_year"},
"track": {"_track"},
})
return tags, nil