feat(library): albums are filed under their album artist, and empty rows are tidied after a scan
release / go (push) Failing after 1m13s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m4s
release / android (push) Successful in 4m48s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Failing after 1m13s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m4s
release / android (push) Successful in 4m48s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
The scanner read only the track artist, so a compilation tagged Various Artists, or an album with one featured-artist track, became one album per track artist. It now files the album under the album artist the file names (ALBUMARTIST / TPE2 / aART, with its MusicBrainz id), and each track keeps its own artist. Tag-read version 9 re-reads the library so existing tracks move back onto one album. A scan now ends by removing album rows no track points to, and artists left with no albums or tracks, telling clients they are gone. Albums whose tracks are only missing stay for Needs a file, an artist a Songs like playlist is seeded from stays, and rows made in the last ten minutes are left alone so a file being added is never caught half way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,12 @@ import (
|
||||
type TagMBIDs struct {
|
||||
// Release is musicbrainz_albumid: one edition, what albums.mbid stores.
|
||||
Release string
|
||||
Artist string
|
||||
// Artist is the track's own artist (musicbrainz_artistid).
|
||||
Artist string
|
||||
// AlbumArtist is musicbrainz_albumartistid: who the album is filed
|
||||
// under, which on a compilation or a track with a featured artist is
|
||||
// not the track's artist.
|
||||
AlbumArtist string
|
||||
// ReleaseGroup is musicbrainz_releasegroupid. The duplicate resolver
|
||||
// reads an album's MusicBrainz track lists by it.
|
||||
ReleaseGroup string
|
||||
@@ -40,6 +45,7 @@ func ReadTagMBIDs(m tag.Metadata) TagMBIDs {
|
||||
ids := TagMBIDs{
|
||||
Release: cleanMBID(info.Get(mbz.Album)),
|
||||
Artist: cleanMBID(info.Get(mbz.Artist)),
|
||||
AlbumArtist: cleanMBID(info.Get(mbz.AlbumArtist)),
|
||||
ReleaseGroup: cleanMBID(info.Get(mbz.ReleaseGroup)),
|
||||
Recording: cleanMBID(info.Get(mbz.Recording)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user