mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 01:25:47 +01:00
Default bpm to None
This commit is contained in:
parent
80f54ecb9e
commit
3ffaaa1f37
1 changed files with 1 additions and 2 deletions
|
|
@ -257,8 +257,7 @@ class BeatportTrack(BeatportObject):
|
|||
self.url = "https://beatport.com/track/{0}/{1}" \
|
||||
.format(data['slug'], data['id'])
|
||||
self.track_number = data.get('trackNumber')
|
||||
if 'bpm' in data:
|
||||
self.bpm = data['bpm']
|
||||
self.bpm = data.get('bpm')
|
||||
self.musical_key = six.text_type(
|
||||
(data.get('key') or {}).get('shortName')
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue