From f2a924fb56f4fc90edc145eb16ab378ec63275e0 Mon Sep 17 00:00:00 2001 From: Johannes Baiter Date: Sun, 2 Jun 2013 11:55:44 +0200 Subject: [PATCH] Bugfixes in Beatport plugin --- beetsplug/beatport.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/beetsplug/beatport.py b/beetsplug/beatport.py index ca61e0624..73514f298 100644 --- a/beetsplug/beatport.py +++ b/beetsplug/beatport.py @@ -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)