mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #190] is_playable field is always Option::None #66
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#66
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 @elbart on GitHub (Feb 27, 2021).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/190
Describe the bug
First of all: Thanks for bringing this project to life and for maintaining it further. It's a super cool thing to use, especially for downstream projects like spotify-tui, where I am currently working on, a bit.
I was just trying to fetch the
is_playablefield for theFullTrack(currently rspotify only support this forFullTrack->SimplifiedTrackwill be supported when #145 goes into a release). However I always only gotOption::Nonevalues returned.I used my personal "Saved Tracks" list, where I have one Song which is not playable (spotify:track:3jUL0aX4XgQbUxJhMRiY7a) and many others which are all playable. However I never see a Some(bool) (neither true, nor false), but only None values.
I did try myself with the spotify API web console and I always got the field
is_playablereturned with "false" for the above mentioned track and otherwise "true". I am however not sure where this error roots from, yet.To Reproduce
Steps to reproduce the behavior:
I prepared a small code-portion which works with tokio "0.2"and rspotify "0.10.0" as dependencies:
Expected behavior
I would expect Some(false) or Some(true) for either of these tracks.
Log/Output data
Additional context
I was working on the spotify-tui project and we want to display "unplayable" songs differently and would need this field to identify this. For more information, please cf. to https://github.com/Rigellute/spotify-tui/issues/718.
@Peter-Schorn commented on GitHub (Mar 24, 2021):
The documentation for the
is_playableproperty of thetrackobject says:Track relinking is only applied if you specify a market parameter in the request. Please read the Track Relinking Guide thoroughly for more information. This endpoint accepts a
marketparameter but it is missing from the corresponding method in this library. It's also missing from other methods in this library, such ascurrent_user_saved_albums.