From 0331571c5de44c374b15b97cc4f2347e70cd410a Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Wed, 1 Apr 2026 11:19:57 -0300 Subject: [PATCH] Fix authorization expiry time units --- votify/api/api.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/votify/api/api.py b/votify/api/api.py index 31c7869..ec6e307 100644 --- a/votify/api/api.py +++ b/votify/api/api.py @@ -201,9 +201,7 @@ class SpotifyApi: token_data["access_token"], DEVICE_CLIENT_TOKEN, ) - self._authorization_expire_time = ( - int(time.time()) + token_data["expires_in"] - ) * 1000 + self._authorization_expire_time = int(time.time()) + token_data["expires_in"] async def _initialize_user_profile(self) -> None: self.user_profile = await self._get_user_profile() if self.sp_dc else None