RyanRussell00 / personal-dj

Personal DJ site that creates playlists given custom inputs. View it live at: http://personaldj.net/
http://personaldj.net/
MIT License
26 stars 12 forks source link

Tracks with country restriction #39

Open luiserdef opened 3 years ago

luiserdef commented 3 years ago

Describe the bug When you want to create a playlist, some tracks is not added because they has country restrictions even if they appear in the recommendation list. This may be different in your country but in my case that happens.

To Reproduce Step 1 - Insert track name: ABC DEF GHI Step 2 - Select track: ABC-DEF-GHI by Little Apple Band Step 3 - Fill all "Fine tune your recommendations" with 0 except "How many songs do you want?" here it has to be 30.

Expected behavior All song that appears in recommendations need to be added to my playlist. 30tracks

but when I click in "save as a Playlist" it just add 25 tracks because 5 of them is not available in my country create

One of the songs that is not available notavail

Additional context To solve this problem it necessary to add another scope: "user-read-private" user-read-private In this way you can get the user's country and thus be able to make some filter. I don't know if there is any problem adding this new scope

RyanRussell00 commented 3 years ago

@gareffmz Thank you for bringing this to our attention! This issue is open to whoever wants to take it up. The Spotify recommendations API has the option to filter by country code (I believe) but we may have to do a little bit of Engineering around the problem. image