Fix MusicBrainz nomenclature: track vs. recording
For historical reasons there is some confusion between Tracks[1] and Recordings[2] in MusicBrainz. Essentially what should be saved to `MUSICBRAINZ_TRACKID` is the Recording MBID—which is what whipper is correctly doing, but the value storing this value was called `mbidTrack` rather than `mbidRecording`, which could potentially cause confusion. [1] https://musicbrainz.org/doc/Track [2] https://musicbrainz.org/doc/Recording Signed-off-by: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
This commit is contained in:
@@ -393,7 +393,7 @@ class Program:
|
||||
track = self.metadata.tracks[number - 1]
|
||||
trackArtist = track.artist
|
||||
title = track.title
|
||||
mbidTrack = track.mbid
|
||||
mbidRecording = track.mbid
|
||||
mbidTrackArtist = track.mbidArtist
|
||||
except IndexError as e:
|
||||
logger.error('no track %d found, %r', number, e)
|
||||
@@ -420,7 +420,7 @@ class Program:
|
||||
tags['DATE'] = self.metadata.release
|
||||
|
||||
if number > 0:
|
||||
tags['MUSICBRAINZ_TRACKID'] = mbidTrack
|
||||
tags['MUSICBRAINZ_TRACKID'] = mbidRecording
|
||||
tags['MUSICBRAINZ_ARTISTID'] = mbidTrackArtist
|
||||
tags['MUSICBRAINZ_ALBUMID'] = mbidRelease
|
||||
tags['MUSICBRAINZ_ALBUMARTISTID'] = mbidReleaseArtist
|
||||
|
||||
Reference in New Issue
Block a user