diff --git a/librespot/oauth.py b/librespot/oauth.py index 3522551..d2b5ddf 100644 --- a/librespot/oauth.py +++ b/librespot/oauth.py @@ -54,6 +54,10 @@ def get_auth_url(self): def set_code(self, code): self.__code = code + def set_scopes(self, scopes): + self.__scopes = scopes + return self + def request_token(self): if not self.__code: raise RuntimeError("You need to provide a code before!") @@ -138,4 +142,3 @@ def flow(self): def __close(self): if self.__server: self.__server.shutdown() -