Allow Spotify URL with country code (intl-xx
)
#127
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Spotify URLs can have a country code in them, like this:
open.spotify.com/intl-fr/album/<id>
(instead ofopen.spotify.com/album/<id>
), but Zotify doesn't handle them yet. Both URLs are working and refere to the same content despite the country code/intl-xx
. I couldn't find any official documentation from Spotify about it, and I'm guessing it's added to URLs for accounts localized outside USA. I'm from France and I have it on my browser client, on every page (artists, tracks, etc). While searching about this, I found an issue (fixed) about this on the spotDL repo, and also someone from Deutshland referring to this on Reddit.I guess it's to make content (un)available per country.
Anyway I added a small part to ignore
intl-xx
in the Spotify URL RegExp, to be able to just paste URLs for Zotify without manually edit them every time.I tried out Zotify locally with my modifications and it seems to be working as expected, here for an URL with a country code:
The URLs without country code still work properly too: