Skip to content

Commit

Permalink
[ 1.0.65 ] * Updated underlying spotifywebapiPython package require…
Browse files Browse the repository at this point in the history
…ment to version 1.0.119.
  • Loading branch information
thlucas1 committed Nov 15, 2024
1 parent 532daa8 commit 751b378
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Change are listed in reverse chronological order (newest to oldest).

<span class="changelog">

###### [ 1.0.65 ] - 2024/11/15

* Updated underlying `spotifywebapiPython` package requirement to version 1.0.119.

###### [ 1.0.64 ] - 2024/11/03

* Added service `add_player_queue_items` to add one or more items to the end of the user's current Spotify Player playback queue.
Expand Down
4 changes: 2 additions & 2 deletions custom_components/spotifyplus/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"requests_oauthlib>=1.3.1",
"soco>=0.30.4",
"smartinspectPython>=3.0.33",
"spotifywebapiPython>=1.0.114",
"spotifywebapiPython>=1.0.119",
"urllib3>=1.21.1,<1.27",
"zeroconf>=0.132.2"
],
"version": "1.0.64",
"version": "1.0.65",
"zeroconf": [ "_spotify-connect._tcp.local." ]
}
7 changes: 6 additions & 1 deletion custom_components/spotifyplus/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -3345,7 +3345,7 @@ def service_spotify_get_browse_categorys_list(
apiMethodParms.AppendKeyValue("country", country)
apiMethodParms.AppendKeyValue("locale", locale)
apiMethodParms.AppendKeyValue("refresh", refresh)
_logsi.LogMethodParmList(SILevel.Verbose, "Spotify Get Browse Categorys Service", apiMethodParms)
_logsi.LogMethodParmList(SILevel.Verbose, "Spotify Get Browse Categorys List Service", apiMethodParms)

# request information from Spotify Web API.
_logsi.LogVerbose(STAppMessages.MSG_SERVICE_QUERY_WEB_API)
Expand All @@ -3356,6 +3356,11 @@ def service_spotify_get_browse_categorys_list(
for category in resultArray:
result.Items.append(category)

# set CategoryPage object summary.
result.Total = len(resultArray)
result.Limit = result.Total
result.DateLastRefreshed = datetime.utcnow().timestamp()

# return the (partial) user profile that retrieved the result, as well as the result itself.
return {
"user_profile": self._GetUserProfilePartialDictionary(self.data.spotifyClient.UserProfile),
Expand Down
4 changes: 2 additions & 2 deletions custom_components/spotifyplus/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@
}
}
},
"get_browse_categorys": {
"name": "Get Browse Categorys",
"get_browse_categorys_list": {
"name": "Get Browse Categorys List",
"description": "Get a sorted list of ALL categories used to tag items in Spotify.",
"fields": {
"entity_id": {
Expand Down
4 changes: 2 additions & 2 deletions custom_components/spotifyplus/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@
}
}
},
"get_browse_categorys": {
"name": "Get Browse Categorys",
"get_browse_categorys_list": {
"name": "Get Browse Categorys List",
"description": "Get a sorted list of ALL categories used to tag items in Spotify.",
"fields": {
"entity_id": {
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ homeassistant==2024.5.0
ruff==0.1.3
soco>=0.30.4
smartinspectPython>=3.0.33
spotifywebapiPython>=1.0.114
spotifywebapiPython>=1.0.119

0 comments on commit 751b378

Please sign in to comment.