spotifywebapiPython 1.0.79__py3-none-any.whl → 1.0.80__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.

Files changed (24) hide show
  1. {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.80.dist-info}/METADATA +1 -1
  2. {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.80.dist-info}/RECORD +24 -24
  3. spotifywebapipython/const.py +1 -1
  4. spotifywebapipython/docs/__init__.html +12 -3
  5. spotifywebapipython/docs/index.html +2 -2
  6. spotifywebapipython/docs/search.js +1 -1
  7. spotifywebapipython/docs/spotifywebapiPython/const.html +3 -3
  8. spotifywebapipython/docs/spotifywebapiPython/saappmessages.html +2 -2
  9. spotifywebapipython/docs/spotifywebapiPython/sautils.html +2 -2
  10. spotifywebapipython/docs/spotifywebapiPython/spotifyapierror.html +2 -2
  11. spotifywebapipython/docs/spotifywebapiPython/spotifyapimessage.html +2 -2
  12. spotifywebapipython/docs/spotifywebapiPython/spotifyauthtoken.html +2 -2
  13. spotifywebapipython/docs/spotifywebapiPython/spotifyclient.html +168 -72
  14. spotifywebapipython/docs/spotifywebapiPython/spotifydiscovery.html +2 -2
  15. spotifywebapipython/docs/spotifywebapiPython/spotifywebapiauthenticationerror.html +2 -2
  16. spotifywebapipython/docs/spotifywebapiPython/spotifywebapierror.html +2 -2
  17. spotifywebapipython/models/spotifyconnectdevice.py +60 -1
  18. spotifywebapipython/models/spotifyconnectdevices.py +2 -0
  19. spotifywebapipython/spotifyclient.py +440 -195
  20. spotifywebapipython/zeroconfapi/zeroconfconnect.py +4 -2
  21. spotifywebapipython/zeroconfapi/zeroconfgetinfoalias.py +8 -0
  22. {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.80.dist-info}/LICENSE +0 -0
  23. {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.80.dist-info}/WHEEL +0 -0
  24. {spotifywebapiPython-1.0.79.dist-info → spotifywebapiPython-1.0.80.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 = 'SpotifyDesktopApp_Scopes_Streaming'
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.