mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-08 12:49:32 +01:00
Fixed bug where specific releases would not show disambiguation in track title.
Releases should now be WYSIWYG reflection of musicbrainz.org (with the exception of multiple disc releases to be handled next).
This commit is contained in:
@@ -486,9 +486,13 @@ def getTracksFromRelease(release):
|
||||
tracks = []
|
||||
for medium in release['medium-list']:
|
||||
for track in medium['track-list']:
|
||||
try:
|
||||
track_title = unicode(track['title'])
|
||||
except:
|
||||
track_title = unicode(track['recording']['title'])
|
||||
tracks.append({
|
||||
'number': totalTracks,
|
||||
'title': unicode(track['recording']['title']),
|
||||
'title': track_title,
|
||||
'id': unicode(track['recording']['id']),
|
||||
'url': u"http://musicbrainz.org/track/" + track['recording']['id'],
|
||||
'duration': int(track['length']) if 'length' in track else 0
|
||||
|
||||
Reference in New Issue
Block a user