Closed ghost closed 3 years ago
Hi Jim!
I don't think the market
parameter 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 locale
parameter 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
As ever, thank you Jonathan, you are a big help.
Jim
Hi Jonathan,
I notice that when I run a search for an episode, that records are returned where the language of that record is
de
for 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 live
the top results are episodes with language values ofde
e.g. first result has
audio_preview_url
of https://p.scdn.co/mp3-preview/fe5cf4286b8e67065b41546424c6dcb463cf0c09 anddescription
of "Wir sind zurück! Und besprechen die dinge die uns wirklich am herzen liegen wie zu Beispiel reich sein und Dampfduschen!", andlanguage
of "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