Closed LorenzoCavatorta closed 5 years ago
Hi, this is now working on v0.6.1 I am getting an "wrong scope" error on my request though. Given scope has to be a "[space separated list](space-separated list)" I changed line 143 to
data["scope"] = ' '.join([quote(scope.value) for scope in self.scopes])
and it's working
Any way I can install with this new fix?
@Dextroz pip install git+https://github.com/mental32/spotify.py@v0.6.2#egg=spotify
I believe you mistyped LorenzoCavatorta's fix and its erroring due to a list being passed into quote.
@micahdlamb thanks for letting me know, I'll get a fix up in an hour or two
Also I believe you want the " " chars passed into quote like: quote(" ".join(scope.value for scope in self.scopes)) Thanks so much for creating this project!
Apologies for the lateness, I've made the changes and pushed 0.6.3
to pypi
Hi!
I'm currently testing the Flask example for authenticating (I applied these two small changes, but everything else is a fresh clone from master, v 0.6.0). I'm getting an error from the OAuth module when trying to set up the scopes:
In my case the
scopes
property is called with self.__scopes as a set (I don't see that attributed changing anywhere), but even if I call it with a dictionary, theMappingProxyType
object will not have an.add
(or.remove
) method anyway. So I'm a bit lostFYI: many things you're doing in your code are pretty new to me, so apologies for the dumb questions