Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for artist name on tracks

  • Loading branch information...
commit 360966cebb360b1fafdd36c6a9ebdfeeae9ef734 1 parent b196e13
@rodbegbie authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 data/MusicBrainz.py
View
12 data/MusicBrainz.py
@@ -54,10 +54,10 @@ def createDiscMetadata(release, cdid, numTracks, toc):
album = release.title
albid = extractUuid(release.id, 'release')
- artId = extractUuid(release.artist.id, 'artist')
+ rel_artId = artId = extractUuid(release.artist.id, 'artist')
- artist = release.artist.name
- artistSort = release.artist.sortName
+ rel_artist = artist = release.artist.name
+ rel_artistSort = artistSort = release.artist.sortName
discMeta.variousArtists = (release.artist.id == model.VARIOUS_ARTISTS_ID)
releaseYear = None
@@ -92,9 +92,9 @@ def createDiscMetadata(release, cdid, numTracks, toc):
for track in release.tracks:
trackNum += 1
name = track.title
- artist = track.artist.name if track.artist else artist
- artistSort = track.artist.sortName if track.artist else artistSort
- artId = extractUuid(track.artist.id, 'artist') if track.artist else artId
+ artist = track.artist.name if track.artist else rel_artist
+ artistSort = track.artist.sortName if track.artist else rel_artistSort
+ artId = extractUuid(track.artist.id, 'artist') if track.artist else rel_artId
dura = track.duration if track.duration else 0
trackURI = track.id
trackId = extractUuid(trackURI, 'track')
Please sign in to comment.
Something went wrong with that request. Please try again.