Allow Spotify URL with country code (intl-xx) #127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "etn406/main"
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?
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-xxin 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:
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.