mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #968] previews that were previously valid, now are null #581
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#581
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 @ariutti on GitHub (Apr 24, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/968
Hi guy,
this is my first time making experiments with Spotify API via Spotipy.
Some days ago a used Spotipy to download all the data related to my account loved tracks.
I had already noticed that several tracks did not have a valid
preview_url(about 18%). A few days later I did a new test to download my 'loved tracks' again, which had increased in the meantime.I noticed in this second test that the percentage of tracks not having a preview had increased considerably (38%), unjustifiably: many of the tracks that had a valid preview, now no longer seem to have one (
preview_url = null).Why?
This is the link to the code snippet I'm using.
Here's an example for the track "Close to me" by The Cure (id:
4xiyq1iRdsxuU1BPUJ490Z).When I first downloaded the track data (03-april-2023) i got this:
In my second test (22-04-2023), I got this instead (notice that I added inside the json some additional info taken form artists and the album like the genres and album title and album release year):
As you see
preview_url = null!!!The thing which sound strange to me is that the preview_url I retrieved in the first place is still valid. if I visit the link, it works! So why spotipy/spotify API is not providing me with it?
Then I tried a new experiment (code below) and, to this day that I am writing this post, i get null for every market.
Am I doing something wrong?
Tank you so much for your support
@stephanebruckert commented on GitHub (Apr 24, 2023):
As spotipy only returns what it receives from the API, this is going to be a question for Spotify for Developers. Note that it happened before so it would be great to raise it with Spotify https://github.com/spotipy-dev/spotipy/issues/592#issuecomment-715342394
I will close this but feel free to post a link to your new post to help anyone in the same situation.