mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #553] 'NoneType' has no attribute 'split' when trying to fetch audio features for a list of song ids #333
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#333
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?
Originally created by @hanss0n on GitHub (Aug 9, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/553
Describe the bug
Fetching features for a list of song id's gives me a python error
Your code
Expected behavior
I expected to get the features for the song id's I queried
Output
Environment:
Additional informaton:
This worked perfectly fine for me previously, so I'm wondering if anything happened with Spotify's web api?
EDIT:
I have managed to figure out that this only happens on some of my playlists, for example the id's in the following playlist:
spotify:playlist:5YtuU88z2sdmp0yfuJWytn (the one posted above)
@stephanebruckert commented on GitHub (Aug 10, 2020):
One of your IDs is
None@hanss0n commented on GitHub (Aug 10, 2020):
Good catch, but why is one of the songs id's None after calling
playlist_tracks('spotify:playlist:5YtuU88z2sdmp0yfuJWytn', fields='items.track.id')?@stephanebruckert commented on GitHub (Aug 10, 2020):
It looks like it is a local track and being unknown to spotify, doesn't have an id
@hanss0n commented on GitHub (Aug 10, 2020):
Ah, that explains it. Thanks!