From 5e108e943985313fe65806fe7c08200a45fe2d71 Mon Sep 17 00:00:00 2001 From: Googolplexed0 <65880807+Googolplexed0@users.noreply.github.com> Date: Fri, 26 Dec 2025 18:23:40 -0600 Subject: [PATCH] Add set_scopes method to OAuth implementation --- librespot/oauth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -