Skip to content

Commit

Permalink
Bugfix when calculating uri from id
Browse files Browse the repository at this point in the history
  • Loading branch information
pablorusso committed Jun 5, 2014
1 parent a997a8f commit e278d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify_web/spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def id2uri(uritype, v):
res = [v % 62] + res
v /= 62
id = ''.join([base62[i] for i in res])
return ("spotify:"+uritype+":"+id).rjust(22, "0")
return ("spotify:"+uritype+":"+id.rjust(22, "0"))

@staticmethod
def uri2id(uri):
Expand Down

0 comments on commit e278d51

Please sign in to comment.