Skip to content

Commit

Permalink
Enable whipper to use track title if possible
Browse files Browse the repository at this point in the history
track.title = t.get('title', t['recording']['title']).

Since if a track itself doesn't have a title then the track
title is the same with the recording title. Otherwise, a track
has its own title then t['title'] is different from
t['recording']['title'] and whipper chooses t['title'].

[Fixes whipper-team#192]
Signed-off-by: ABCbum <kimlong221002@gmail.com>
  • Loading branch information
ABCbum committed Dec 13, 2019
1 parent 6e3e21f commit 758f854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whipper/common/mbngs.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _getMetadata(release, discid, country=None):
track.sortName = trackCredit.getSortName()
track.mbidArtist = trackCredit.getIds()

track.title = t['recording']['title']
track.title = t.get('title', t['recording']['title'])
track.mbid = t['id']
track.mbidRecording = t['recording']['id']
track.mbidWorks = _getWorks(t['recording'])
Expand Down

0 comments on commit 758f854

Please sign in to comment.