mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #426] Search query for a specific genre from a specific year? #250
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#250
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 @fortyTwo102 on GitHub (Jan 20, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/426
Pretty much what the title said. Kudos for the module!
@stephanebruckert commented on GitHub (Jan 20, 2020):
It might work but you need to build your own query and pass it to
sp.search(query).Look for "year" on this page https://developer.spotify.com/documentation/web-api/reference/search/search
@fortyTwo102 commented on GitHub (Jan 20, 2020):
@stephanebruckert I tried it but what basically happens is that I can either only search using the genre or the year but not those two together. Adding a '+' between them does not work.
@stephanebruckert commented on GitHub (Jan 20, 2020):
this example looks promising, what does it give with
genreandyear?Let me know if it works, but if it doesn't, you should post an issue in https://github.com/spotify/web-api/ instead, because this is related to what you receive from the API directly.
Edit: also note that tracks don't have a genre, only artists and albums sometimes do, so
type=trackmight not give any result@fortyTwo102 commented on GitHub (Jan 20, 2020):
hey I managed to get it done. What I did was give a whitespace between the two params.
The query is something like sp.search("genre:avant-garde year:1966", type=artist)