Skip to content

Commit

Permalink
Merge pull request #28 from WillemLabu/patch-1
Browse files Browse the repository at this point in the history
Hacky work around to bug in SoundCloud API (inconsistent representation parameters). Fixes #21 and #25.
  • Loading branch information
paulosman committed Oct 1, 2013
2 parents 07a29be + 3fa8110 commit dce4761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions soundcloud/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def _resolve_resource_name(self, name):
return '%s.json' % (name,)
return name
name = name.rstrip('/').lstrip('/')
if name[-13:] == 'contributions':
return '%s%s/%s' % (self.scheme, self.host, name)
return '%s%s/%s.json' % (self.scheme, self.host, name)

def _redirect_uri(self):
Expand Down

0 comments on commit dce4761

Please sign in to comment.