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

Support for the new Spotify Links #301

Closed
Kyescentia opened this issue Oct 14, 2023 · 9 comments
Closed

Support for the new Spotify Links #301

Kyescentia opened this issue Oct 14, 2023 · 9 comments
Labels
enhancement New feature or improvement

Comments

@Kyescentia
Copy link

Soo, spotify has been providing mobile users with a spotify.link domain and a random ID at the back instead of using the standard open.spotify.com for both Playlists and Tracks.

Examples:
image
image

Adding support for this would be beneficial for most users here 🙏🙏

@Kyescentia Kyescentia added the enhancement New feature or improvement label Oct 14, 2023
@felix-hilden
Copy link
Owner

Oh! Thanks for letting me know! Contributions are welcome but if not, I'll try to get it done within a few days 👍

@felix-hilden
Copy link
Owner

felix-hilden commented Oct 16, 2023

Okay, so unfortunately as you said, the IDs are random so we can't decide what it contains. I'll provide a function like is_spotify_url and possibly a HTTP call to try to resolve the redirect. But these might need to wait since Spotify doesn't have any docs about this ☹️

@Kyescentia
Copy link
Author

Oo, alrighty. Thanks for taking your time into this!!

@Kyescentia
Copy link
Author

I just found a workaround for this which works, uses requests to get the final open.spotify.com/ url

https://community.spotify.com/t5/Spotify-for-Developers/Give-us-an-endpoint-to-decode-new-shortened-share-links/m-p/5637302/highlight/true#M10762

@felix-hilden
Copy link
Owner

Yep that seems like only thing we can do for now 😅 I'll see what a reasonable implementation could look like

@Kyescentia
Copy link
Author

I guess.. Thanks again though!

@felix-hilden
Copy link
Owner

Alright I had a go at it and it looks promising. There's some hoops to go through since this is a new type of URL, but I think we can add it directly to the client which is way more usable. Unfortunately my weekend is busy, but I'll let post any updates on this issue 👍

@felix-hilden
Copy link
Owner

Hi! I've got a PR up now, which I'd really appreciate comments on. Does it seem usable for what you had in mind for whatever app you intended to write?

@Kyescentia
Copy link
Author

I will test it later today, will let you know!

felix-hilden added a commit that referenced this issue Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants