spotifywebapiPython 1.0.45__py3-none-any.whl → 1.0.47__py3-none-any.whl
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.
Potentially problematic release.
This version of spotifywebapiPython might be problematic. Click here for more details.
- {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/METADATA +6 -6
- {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/RECORD +34 -28
- spotifywebapipython/const.py +1 -1
- spotifywebapipython/docs/__init__.html +21 -3
- spotifywebapipython/docs/index.html +20 -2
- spotifywebapipython/docs/search.js +1 -1
- spotifywebapipython/docs/spotifywebapiPython/const.html +3 -3
- spotifywebapipython/docs/spotifywebapiPython/saappmessages.html +22 -2
- spotifywebapipython/docs/spotifywebapiPython/sautils.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifyapierror.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifyapimessage.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifyauthtoken.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifyclient.html +2 -200
- spotifywebapipython/docs/spotifywebapiPython/spotifydiscovery.html +2 -28
- spotifywebapipython/docs/spotifywebapiPython/spotifywebapiauthenticationerror.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifywebapierror.html +2 -2
- spotifywebapipython/models/__init__.py +0 -10
- spotifywebapipython/saappmessages.py +7 -1
- spotifywebapipython/spotifyclient.py +0 -249
- spotifywebapipython/spotifydiscovery.py +0 -46
- spotifywebapipython/zeroconfapi/__init__.py +21 -0
- spotifywebapipython/{models/zeroconfblobbuilder.py → zeroconfapi/blobbuilder.py} +10 -58
- spotifywebapipython/zeroconfapi/credentials.py +18 -0
- spotifywebapipython/zeroconfapi/cryptodiffiehellman.py +24 -0
- spotifywebapipython/zeroconfapi/helpers.py +30 -0
- spotifywebapipython/zeroconfapi/spotifyzeroconfapierror.py +108 -0
- spotifywebapipython/zeroconfapi/zeroconfconnect.py +562 -0
- spotifywebapipython/{models → zeroconfapi}/zeroconfgetinfo.py +21 -7
- spotifywebapipython/{models → zeroconfapi}/zeroconfgetinfoalias.py +1 -1
- spotifywebapipython/{models → zeroconfapi}/zeroconfgetinfodrmmediaformat.py +1 -1
- spotifywebapipython/{models → zeroconfapi}/zeroconfresponse.py +3 -3
- {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/LICENSE +0 -0
- {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/WHEEL +0 -0
- {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/top_level.txt +0 -0
|
@@ -9,7 +9,7 @@ from .zeroconfresponse import ZeroconfResponse
|
|
|
9
9
|
@export
|
|
10
10
|
class ZeroconfGetInfo(ZeroconfResponse):
|
|
11
11
|
"""
|
|
12
|
-
Spotify
|
|
12
|
+
Spotify Zeroconf API GetInfo response object.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
15
|
def __init__(self, root:dict=None) -> None:
|
|
@@ -96,7 +96,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
|
|
|
96
96
|
@property
|
|
97
97
|
def AccountReq(self) -> str:
|
|
98
98
|
"""
|
|
99
|
-
?
|
|
99
|
+
? (e.g. "DONTCARE").
|
|
100
100
|
"""
|
|
101
101
|
return self._AccountReq
|
|
102
102
|
|
|
@@ -114,7 +114,16 @@ class ZeroconfGetInfo(ZeroconfResponse):
|
|
|
114
114
|
@property
|
|
115
115
|
def Aliases(self) -> list:
|
|
116
116
|
"""
|
|
117
|
+
Device alias information, IF the device supports aliases.
|
|
117
118
|
|
|
119
|
+
Using ZeroConf, it is possible to announce multiple "virtual devices" from a device.
|
|
120
|
+
This allows the eSDK device to expose, for instance, multiroom zones as ZeroConf devices.
|
|
121
|
+
|
|
122
|
+
Device aliases will show up as separate devices in the Spotify app.
|
|
123
|
+
|
|
124
|
+
Note
|
|
125
|
+
|
|
126
|
+
Please refer to the `RemoteName` property for more information.
|
|
118
127
|
"""
|
|
119
128
|
return self._Aliases
|
|
120
129
|
|
|
@@ -122,7 +131,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
|
|
|
122
131
|
@property
|
|
123
132
|
def Availability(self) -> str:
|
|
124
133
|
"""
|
|
125
|
-
|
|
134
|
+
The SpZeroConfVars availability field returned by SpZeroConfGetVars.
|
|
126
135
|
"""
|
|
127
136
|
return self._Availability
|
|
128
137
|
|
|
@@ -178,7 +187,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
|
|
|
178
187
|
@property
|
|
179
188
|
def GroupStatus(self) -> str:
|
|
180
189
|
"""
|
|
181
|
-
|
|
190
|
+
The SpZeroConfVars group_status field returned by SpZeroConfGetVars (e.g. "NONE").
|
|
182
191
|
"""
|
|
183
192
|
return self._GroupStatus
|
|
184
193
|
|
|
@@ -219,6 +228,11 @@ class ZeroconfGetInfo(ZeroconfResponse):
|
|
|
219
228
|
def RemoteName(self) -> str:
|
|
220
229
|
"""
|
|
221
230
|
Name to be displayed for the device (e.g. "BOSE-ST10-1").
|
|
231
|
+
|
|
232
|
+
This value will be null if the response is from a device using device aliases,
|
|
233
|
+
as the displayed name for respective alias is defined in the aliases field.
|
|
234
|
+
|
|
235
|
+
Please refer to the `Aliases` property for more information.
|
|
222
236
|
"""
|
|
223
237
|
return self._RemoteName
|
|
224
238
|
|
|
@@ -226,7 +240,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
|
|
|
226
240
|
@property
|
|
227
241
|
def ResolverVersion(self) -> str:
|
|
228
242
|
"""
|
|
229
|
-
|
|
243
|
+
The SpZeroConfVars resolver_version field returned by SpZeroConfGetVars (e.g. "0").
|
|
230
244
|
"""
|
|
231
245
|
return self._ResolverVersion
|
|
232
246
|
|
|
@@ -242,7 +256,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
|
|
|
242
256
|
@property
|
|
243
257
|
def SupportedCapabilities(self) -> int:
|
|
244
258
|
"""
|
|
245
|
-
|
|
259
|
+
Bitmasked integer representing list of device capabilities (e.g. 0).
|
|
246
260
|
"""
|
|
247
261
|
return self._SupportedCapabilities
|
|
248
262
|
|
|
@@ -250,7 +264,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
|
|
|
250
264
|
@property
|
|
251
265
|
def SupportedDrmMediaFormats(self) -> list:
|
|
252
266
|
"""
|
|
253
|
-
|
|
267
|
+
The SpZeroConfVars supported_drm_media_formats field returned by SpZeroConfGetVars (e.g. []).
|
|
254
268
|
"""
|
|
255
269
|
return self._SupportedDrmMediaFormats
|
|
256
270
|
|
|
@@ -6,7 +6,7 @@ from ..sautils import export
|
|
|
6
6
|
@export
|
|
7
7
|
class ZeroconfResponse:
|
|
8
8
|
"""
|
|
9
|
-
Spotify
|
|
9
|
+
Spotify Zeroconf API basic response object.
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
def __init__(self, root:dict=None) -> None:
|
|
@@ -46,7 +46,7 @@ class ZeroconfResponse:
|
|
|
46
46
|
@property
|
|
47
47
|
def ResponseSource(self) -> str:
|
|
48
48
|
"""
|
|
49
|
-
|
|
49
|
+
TODO - Response source string (e.g. "???").
|
|
50
50
|
"""
|
|
51
51
|
return self._ResponseSource
|
|
52
52
|
|
|
@@ -89,7 +89,7 @@ class ZeroconfResponse:
|
|
|
89
89
|
return result
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
def ToString(self, includeTitle:bool=
|
|
92
|
+
def ToString(self, includeTitle:bool=True) -> str:
|
|
93
93
|
"""
|
|
94
94
|
Returns a displayable string representation of the class.
|
|
95
95
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|