You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(If you open a Spotify URL in a language you do not use in your browser, you will be redirected to the Spotify URL in the language you use.)
Cause
In src/lib/strings/embed-player.ts, spotify URL is split by '/' and the second element is treated as type, and expected to be one of 'playlist', 'album' or 'track'.
However, if the second element is in the form of 'intl-LANGCODE', then the third element must be treated as 'type'.
const[_,type,id]=urlp.pathname.split('/')
The text was updated successfully, but these errors were encountered:
Assuming this is correct? Spotify seems to redirect to the non-localized version whenever I try to access it, so I can't actually verify...(doesn't seem the embed takes in the locale either that I can tell)
Bluesky can now embed Spotify players, but non-English version links to Spotify albums and tracks will not work as embeded player.
To Reproduce
Samples URLs are attached.
track
album
(If you open a Spotify URL in a language you do not use in your browser, you will be redirected to the Spotify URL in the language you use.)
Cause
In src/lib/strings/embed-player.ts, spotify URL is split by
'/'
and the second element is treated astype
, and expected to be one of'playlist'
,'album'
or'track'
.However, if the second element is in the form of
'intl-LANGCODE'
, then the third element must be treated as 'type'.The text was updated successfully, but these errors were encountered: