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.
This commit is contained in:
parent
833ddceba4
commit
62bf532e21
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue