mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #218] Question about Country Code and Episode Search #153
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#153
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 @ghost on GitHub (Jan 24, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/218
Hi Jonathan,
I notice that when I run a search for an episode, that records are returned where the language of that record is
defor example.This is my sample code:
I have reviewed the Spotify Docs which says:
My country is set to GB, so I have tested having search options as:
$search_options = ['offset' => 0,'limit' => $limit,'market' => 'from_token', 'include_external' => 'audio'];And also:
$search_options = ['offset' => 0,'limit' => $limit,'market' => 'GB', 'include_external' => 'audio'];However, when e.g. searching for
saturday livethe top results are episodes with language values ofdee.g. first result has
audio_preview_urlof https://p.scdn.co/mp3-preview/fe5cf4286b8e67065b41546424c6dcb463cf0c09and
descriptionof "Wir sind zurück! Und besprechen die dinge die uns wirklich am herzen liegen wie zu Beispiel reich sein und Dampfduschen!", andlanguageof "de".The Docs says
Playlist results are not affected by the market parameter.but doesn't mention episodes not being affected by the market parameter.Do you think this an issue with this library, or the wider API?
Thanks
Jim
@jwilsson commented on GitHub (Jan 24, 2021):
Hi Jim!
I don't think the
marketparameter will actually control the language of the results returned (I'm in Sweden and I'm getting a mix of English and German results too) but only limit the results to items actually playable in that country.What we'd really want is a
localeparameter like the featured playlists endpoint. I'd post a suggestion for it on their developer forum and hope they implement something like it.Cheers,
Jonathan
@ghost commented on GitHub (Jan 24, 2021):
As ever, thank you Jonathan, you are a big help.
Jim