mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #651] [CLOSED] Make return structure for "Get Multiple..." type APIs consistent #979
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#979
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/651
Author: @badfarmerjohn
Created: 3/4/2021
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (5)
b2a834fMake return structure for "Get Multiple..." type APIs consistentaacdbcfModified testsca60303Merge branch 'patch-1' of https://github.com/badfarmerjohn/spotipy into patch-18e86ea9Explained changes in changelogf9c9490Fixed syntax📊 Changes
4 files changed (+43 additions, -31 deletions)
View changed files
📝
CHANGELOG.md(+15 -0)📝
spotipy/client.py(+19 -15)📝
tests/integration/test_non_user_endpoints.py(+8 -15)📝
tests/integration/test_user_endpoints.py(+1 -1)📄 Description
Get-Multiple APIs have a JSON response structure of with a single entry whose value is a list containing the actual requested items as dictionaries. The audio_features function in client.py was adapted to unwrap the single value in commit
9c0b872e86, but other functions for similar APIs (eg. tracks, artists, albums, ...) have not been adapted, leading to an inconsistent structure in the returned dictionary. This change modifies those functions to handle the response similar to audio_features.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.