mirror of
https://github.com/beetbox/beets.git
synced 2026-01-16 21:25:14 +01:00
Bugfixes in Beatport plugin
This commit is contained in:
parent
eb20d77c69
commit
f2a924fb56
1 changed files with 1 additions and 14 deletions
|
|
@ -32,13 +32,6 @@ class BeatportAPIError(Exception):
|
|||
|
||||
|
||||
class BeatportObject(object):
|
||||
beatport_id = None
|
||||
name = None
|
||||
release_date = None
|
||||
artists = []
|
||||
genres = []
|
||||
url = None
|
||||
|
||||
def __init__(self, data):
|
||||
self.beatport_id = data['id']
|
||||
self.name = unicode(data['name'])
|
||||
|
|
@ -98,9 +91,6 @@ class BeatportSearch(object):
|
|||
|
||||
class BeatportRelease(BeatportObject):
|
||||
API_ENDPOINT = 'catalog/3/beatport/release'
|
||||
catalog_number = None
|
||||
label_name = None
|
||||
category = None
|
||||
|
||||
def __unicode__(self):
|
||||
if len(self.artists) < 4:
|
||||
|
|
@ -135,10 +125,7 @@ class BeatportRelease(BeatportObject):
|
|||
|
||||
|
||||
class BeatportTrack(BeatportObject):
|
||||
API_ENDPOINT = 'catalog/3/beatport/release'
|
||||
title = None
|
||||
mix_name = None
|
||||
length = None
|
||||
API_ENDPOINT = 'catalog/3/beatport/track'
|
||||
|
||||
def __unicode__(self):
|
||||
artist_str = ", ".join(x[1] for x in self.artists)
|
||||
|
|
|
|||
Loading…
Reference in a new issue