From 62bf532e21f866427d4082e16421a6ddee983c27 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Sat, 11 Feb 2023 16:36:31 -0700 Subject: [PATCH] music: fall back to txxx:releasetype on id3v2 Fall back to TXXX:RELEASETYPE on ID3v2 if the more conventional MusicBrainz tag cannot be found. This should reduce confusion for people that might assume that the vorbis convention for release types also applies to ID3v2. Resolves #353. --- .../main/java/org/oxycblt/auxio/music/metadata/TagExtractor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/oxycblt/auxio/music/metadata/TagExtractor.kt b/app/src/main/java/org/oxycblt/auxio/music/metadata/TagExtractor.kt index 2d6a8ed96..669175a83 100644 --- a/app/src/main/java/org/oxycblt/auxio/music/metadata/TagExtractor.kt +++ b/app/src/main/java/org/oxycblt/auxio/music/metadata/TagExtractor.kt @@ -192,7 +192,7 @@ private class Task(context: Context, private val rawSong: RawSong) { textFrames["TXXX:musicbrainz album id"]?.let { rawSong.albumMusicBrainzId = it.first() } textFrames["TALB"]?.let { rawSong.albumName = it.first() } textFrames["TSOA"]?.let { rawSong.albumSortName = it.first() } - (textFrames["TXXX:musicbrainz album type"] ?: textFrames["GRP1"])?.let { + (textFrames["TXXX:musicbrainz album type"] ?: textFrames["TXXX:releasetype"] ?: textFrames["GRP1"])?.let { rawSong.releaseTypes = it }