spotapi 1.2.0__tar.gz → 1.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {spotapi-1.2.0/spotapi.egg-info → spotapi-1.2.1}/PKG-INFO +1 -1
- {spotapi-1.2.0 → spotapi-1.2.1}/setup.py +1 -1
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/client.py +2 -2
- {spotapi-1.2.0 → spotapi-1.2.1/spotapi.egg-info}/PKG-INFO +1 -1
- {spotapi-1.2.0 → spotapi-1.2.1}/LICENSE +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/README.md +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/setup.cfg +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/__init__.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/_tests/__init__.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/_tests/annotations_test.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/album.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/artist.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/creator.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/exceptions/__init__.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/exceptions/errors.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/family.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/http/__init__.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/http/data.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/http/request.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/login.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/password.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/player.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/playlist.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/podcast.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/public.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/solvers/__init__.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/solvers/capmonster.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/solvers/capsolver.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/song.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/status.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/types/__init__.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/types/alias.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/types/annotations.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/types/data.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/types/interfaces.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/user.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/utils/__init__.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/utils/logger.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/utils/saver.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/utils/strings.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi/websocket.py +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi.egg-info/SOURCES.txt +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi.egg-info/dependency_links.txt +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi.egg-info/requires.txt +0 -0
- {spotapi-1.2.0 → spotapi-1.2.1}/spotapi.egg-info/top_level.txt +0 -0
|
@@ -100,7 +100,7 @@ class BaseClient:
|
|
|
100
100
|
|
|
101
101
|
def _get_auth_vars(self) -> None:
|
|
102
102
|
if self.access_token is _Undefined or self.client_id is _Undefined:
|
|
103
|
-
totp,
|
|
103
|
+
totp, _ = generate_totp()
|
|
104
104
|
query = {
|
|
105
105
|
"reason": "init",
|
|
106
106
|
"productType": "web-player",
|
|
@@ -109,7 +109,7 @@ class BaseClient:
|
|
|
109
109
|
"totpServer": totp,
|
|
110
110
|
}
|
|
111
111
|
resp = self.client.get(
|
|
112
|
-
"https://open.spotify.com/
|
|
112
|
+
"https://open.spotify.com/api/token", params=query
|
|
113
113
|
)
|
|
114
114
|
|
|
115
115
|
if resp.fail:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|