spotifywebapiPython 1.0.79__py3-none-any.whl → 1.0.81__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.79.dist-info → spotifywebapiPython-1.0.81.dist-info}/METADATA +1 -1
- {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.81.dist-info}/RECORD +24 -24
- spotifywebapipython/const.py +1 -1
- spotifywebapipython/docs/__init__.html +18 -3
- spotifywebapipython/docs/index.html +2 -2
- spotifywebapipython/docs/search.js +1 -1
- spotifywebapipython/docs/spotifywebapiPython/const.html +3 -3
- spotifywebapipython/docs/spotifywebapiPython/saappmessages.html +2 -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 +168 -72
- spotifywebapipython/docs/spotifywebapiPython/spotifydiscovery.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifywebapiauthenticationerror.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifywebapierror.html +2 -2
- spotifywebapipython/models/spotifyconnectdevice.py +60 -1
- spotifywebapipython/models/spotifyconnectdevices.py +2 -0
- spotifywebapipython/spotifyclient.py +437 -195
- spotifywebapipython/zeroconfapi/zeroconfconnect.py +4 -2
- spotifywebapipython/zeroconfapi/zeroconfgetinfoalias.py +8 -0
- {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.81.dist-info}/LICENSE +0 -0
- {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.81.dist-info}/WHEEL +0 -0
- {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.81.dist-info}/top_level.txt +0 -0
|
@@ -551,7 +551,7 @@ class ZeroconfConnect:
|
|
|
551
551
|
tokenType = info.TokenType
|
|
552
552
|
|
|
553
553
|
# get authorization_code access token.
|
|
554
|
-
blob:str = self._GetSpotifyConnectAuthorizationCodeToken(info)
|
|
554
|
+
blob:str = self._GetSpotifyConnectAuthorizationCodeToken(info, loginId=loginId)
|
|
555
555
|
|
|
556
556
|
else:
|
|
557
557
|
|
|
@@ -619,6 +619,7 @@ class ZeroconfConnect:
|
|
|
619
619
|
def _GetSpotifyConnectAuthorizationCodeToken(
|
|
620
620
|
self,
|
|
621
621
|
info:ZeroconfGetInfo,
|
|
622
|
+
loginId:str,
|
|
622
623
|
) -> str:
|
|
623
624
|
"""
|
|
624
625
|
Exchange a Spotify access token for an authorization_code access token.
|
|
@@ -638,6 +639,7 @@ class ZeroconfConnect:
|
|
|
638
639
|
|
|
639
640
|
# trace.
|
|
640
641
|
apiMethodParms = _logsi.EnterMethodParmList(SILevel.Debug, apiMethodName)
|
|
642
|
+
apiMethodParms.AppendKeyValue("loginId", loginId)
|
|
641
643
|
apiMethodParms.AppendKeyValue("info.DeviceId", info.DeviceId)
|
|
642
644
|
apiMethodParms.AppendKeyValue("info.RemoteName", info.RemoteName)
|
|
643
645
|
apiMethodParms.AppendKeyValue("info.BrandDisplayName", info.BrandDisplayName)
|
|
@@ -651,7 +653,7 @@ class ZeroconfConnect:
|
|
|
651
653
|
redirectUriPort:str = 4381
|
|
652
654
|
redirectUriPath:str = '/login'
|
|
653
655
|
authorizationType:str = 'Authorization Code PKCE'
|
|
654
|
-
tokenProfileId:str =
|
|
656
|
+
tokenProfileId:str = loginId
|
|
655
657
|
|
|
656
658
|
# Spotify Desktop App scopes requested for Spotify Connect (streaming only as of 2024/08/13)
|
|
657
659
|
SPOTIFY_SCOPES:list = \
|
|
@@ -65,6 +65,14 @@ class ZeroconfGetInfoAlias:
|
|
|
65
65
|
return self._Name
|
|
66
66
|
|
|
67
67
|
|
|
68
|
+
@property
|
|
69
|
+
def Title(self) -> str:
|
|
70
|
+
"""
|
|
71
|
+
Alias name and id value (e.g. '"Bose-ST10-1" (30fbc80e35598f3c242f2120413c943dfd9715fe)').
|
|
72
|
+
"""
|
|
73
|
+
return '"%s" (%s)' & (self._Name, self._Id)
|
|
74
|
+
|
|
75
|
+
|
|
68
76
|
def ToDictionary(self) -> dict:
|
|
69
77
|
"""
|
|
70
78
|
Returns a dictionary representation of the class.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|