Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify track symlinks not resolved #153

Open
XDjackieXD opened this issue Feb 8, 2017 · 2 comments
Open

Spotify track symlinks not resolved #153

XDjackieXD opened this issue Feb 8, 2017 · 2 comments

Comments

@XDjackieXD
Copy link
Contributor

Some songs in Spotify "symlink" to the actual song and therefore can't be played by librespot.
This does not happen when using spirc as the spotify client already resolves these links.
When supplying the URI directly, librespot panics.
One of those songs is spotify:track:4mu8svGkGaO2dgAcTlo0FK but there are many more.

@plietar
Copy link
Owner

plietar commented Feb 9, 2017

What are you using to load the track ?
Some tracks have restrictions which prevent them from being played in certain countries. They however have a list of "alternatives" which can be used instead.

The player includes support for this. If the track is not available, it will use an alternative instead. This is implemented as the find_available_alternative function: https://github.com/plietar/librespot/blob/master/src/player.rs#L165-L191

The track you've listed as an example loads just fine in the player for me (even when bypassing spirc). If you are not using the provided Player but are downloading and decrypting the file manually, you may need a similar logic to find the right file.

@XDjackieXD
Copy link
Contributor Author

I did not remove the find alternative from the player and I'm just bypassing spirc (getting the spotify IDs from a FiFo file).
This track plays fine on the normal spotify client and it plays fine when using spirc. When printing out the spotify id thta is getting sent by spirc, it correspomds to the same song inside an other album.

mjaggard pushed a commit to mjaggard/librespot that referenced this issue Mar 21, 2018
Update the Auth panic to be rustfmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants