mirror of
https://github.com/glomatico/votify.git
synced 2026-10-24 16:52:31 +02:00
Fix authorization expiry time units
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user