mirror of
https://github.com/beetbox/beets.git
synced 2026-12-01 07:58:03 -06:00
Attempt to address the comments from sampsyo
Undoes the changes to autotag/hooks.py If trackdisambig is not set to None at some point in time, the test case for a non-existent trackdisambig fails. as such, try to get the disambiguation with a default of None when setting trackdisambig. Not sure if this is reasonable.
This commit is contained in:
@@ -163,7 +163,7 @@ class TrackInfo(AttrDict):
|
||||
composer=None, composer_sort=None, arranger=None,
|
||||
track_alt=None, work=None, mb_workid=None,
|
||||
work_disambig=None, bpm=None, initial_key=None, genre=None,
|
||||
trackdisambig=None, **kwargs):
|
||||
**kwargs):
|
||||
self.title = title
|
||||
self.track_id = track_id
|
||||
self.release_track_id = release_track_id
|
||||
@@ -191,7 +191,6 @@ class TrackInfo(AttrDict):
|
||||
self.bpm = bpm
|
||||
self.initial_key = initial_key
|
||||
self.genre = genre
|
||||
self.trackdisambig = trackdisambig
|
||||
self.update(kwargs)
|
||||
|
||||
# As above, work around a bug in python-musicbrainz-ngs.
|
||||
|
||||
+1
-2
@@ -223,8 +223,7 @@ def track_info(recording, index=None, medium=None, medium_index=None,
|
||||
if recording.get('length'):
|
||||
info.length = int(recording['length']) / (1000.0)
|
||||
|
||||
if recording.get('disambiguation'):
|
||||
info.trackdisambig = recording.get('disambiguation')
|
||||
info.trackdisambig = recording.get('disambiguation', None)
|
||||
|
||||
lyricist = []
|
||||
composer = []
|
||||
|
||||
Reference in New Issue
Block a user