[PR #653] [MERGED] Fixed audio_features API wrapper function return structure #980

Closed
opened 2026-02-28 00:03:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/653
Author: @badfarmerjohn
Created: 3/5/2021
Status: Merged
Merged: 3/5/2021
Merged by: @stephanebruckert

Base: v3Head: patch-1


📝 Commits (2)

  • 0853f11 Fixed audio_features API wrapper function return structure
  • e05c997 Merge branch 'v3' into patch-1

📊 Changes

3 files changed (+13 additions, -14 deletions)

View changed files

📝 CHANGELOG.md (+7 -3)
📝 spotipy/client.py (+1 -6)
📝 tests/integration/test_non_user_endpoints.py (+5 -5)

📄 Description

Currently the function wrapping the audio_features (querying the audio features for multiple tracks) unwraps the single-entry of the JSON object returned by the Spotify API endpoint it wraps. Currently, other functions similar endpoints, querying multiple tracks, artists, albums, etc, do not unwrap the JSON response. This change aims to conform the audio_features function's return type. See this comment from a similar pull request for context.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/653 **Author:** [@badfarmerjohn](https://github.com/badfarmerjohn) **Created:** 3/5/2021 **Status:** ✅ Merged **Merged:** 3/5/2021 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `v3` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`0853f11`](https://github.com/spotipy-dev/spotipy/commit/0853f11fef8bd605d0557b934f18819484c5bce6) Fixed audio_features API wrapper function return structure - [`e05c997`](https://github.com/spotipy-dev/spotipy/commit/e05c99755ed197184ce2173e8521b1614ffd9960) Merge branch 'v3' into patch-1 ### 📊 Changes **3 files changed** (+13 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -3) 📝 `spotipy/client.py` (+1 -6) 📝 `tests/integration/test_non_user_endpoints.py` (+5 -5) </details> ### 📄 Description Currently the function wrapping the `audio_features` (querying the audio features for multiple tracks) unwraps the single-entry of the JSON object returned by the Spotify API endpoint it wraps. Currently, other functions similar endpoints, querying multiple tracks, artists, albums, etc, do not unwrap the JSON response. This change aims to conform the audio_features function's return type. See [this comment](https://github.com/plamere/spotipy/pull/651#issuecomment-790932982) from a similar pull request for context. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:03:05 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#980
No description provided.