From 758f8548605ee4622567f496a64e6c011971359f Mon Sep 17 00:00:00 2001 From: ABCbum Date: Fri, 13 Dec 2019 17:39:51 +0700 Subject: [PATCH] Enable whipper to use track title if possible 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 #192] Signed-off-by: ABCbum --- whipper/common/mbngs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whipper/common/mbngs.py b/whipper/common/mbngs.py index f6b014f8..2029c61d 100644 --- a/whipper/common/mbngs.py +++ b/whipper/common/mbngs.py @@ -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'])