Skip to content

Instantly share code, notes, and snippets.

@dswapnil104
Forked from Davoleo/spotify.md
Last active February 18, 2022 13:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dswapnil104/28ee59a8d9a3d49d22820d3de98f8f23 to your computer and use it in GitHub Desktop.
Save dswapnil104/28ee59a8d9a3d49d22820d3de98f8f23 to your computer and use it in GitHub Desktop.
An in-depth guide on modding Spotify with updated methods to remove ads, bypass country restrictions and theme the application

Spotify

This is a collections of script, patches and procedures to mod Mobile and Desktop Spotify Applications
If you know about something that isn't listed here and you would like it to be feel free to tell me about it in the comments or on my discord server at http://discord.davoleo.net

Disabling Ads

Desktop (Windows)

Install the new fork of BlockTheSpot

Note: If you have the Windows Store version of Spotify or you don't feel very confident use the "Semi-Automatic installation" method that installs the right version of Spotify and BlockTheSpot for you.

Semi-Automatic installation:
Manual Installation
  • Browse to this page: https://github.com/mrpond/BlockTheSpot/releases
  • Download the chrome_elf.zip package of the latest available version
  • Press Start + R and write %appdata% and then press Enter (this will get us into the Roaming Appdata Directory of our computer)
  • Look for a directory called Spotify, double click it
  • Extract the contents of the downloaded package (both chrome_elf.dll and config.ini) directly into the Spotify Folder
  • Click yes, when asked to replace the original files with the patched ones
Important Notes

The semi-automatic script will download the latest copy of the patch and apply it to Spotify. You should keep the script file on your computer somewhere so you don't have to download it every time you need to patch the Spotify again. You may need to patch it again whenever there's a new update for Spotify and the patch gets overridden Important Note: After updating and Changing Theme via spicetify Spotify will need to be patched again by BlockTheSpot for it to work properly

Mobile (Android)

Steps
  • Uninstall any previous version of Spotify you may have had before
  • Allow non-PlayStore apps installation in the settings
  • Download and Install xManager-v2 for spotify
  • Once opened this app will allow to install and update modded spotify versions as soon as they're out (you can also install an AMOLED Themed version, if you're display supports AMOLED)

Theming the Desktop App

To inject a custom theme into spotify we'll use a command line utility called Spicetify

Spicetify CLI

Note: if you want to install this on a different OS than Windows please refer to the spicetify CLI wiki

Install Instruction (Windows):
  • Press Start + R, then write powershell and press Enter in the window that shows up
  • In the powershell window that opens run this command:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/khanhas/spicetify-cli/master/install.ps1" | Invoke-Expression
  • If any issue with downloading occurs run this command instead:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/khanhas/spicetify-cli/master/install_curl.ps1" | Invoke-Expression
  • Open a command Prompt and run spicetify to generate default configuration files
  • Download the theme you like the most from this repository (see the note below)
  • Find out the path of the config file by running spicetify -c
  • Open the ini file with a text editor and change the current_theme entry to the name of the folder of the Theme you've downloaded
  • Then open the folder the config.ini file is stored into, and then go into the Themes subdirectory
  • Move the folder of the Theme you've chosen inside the Themes folder
  • Then run spicetify backup apply or spicetify apply depending if a spotify update was just installed

Note: To download themes from the community repository you need to download the repo sources as a zip or cloning the repository with git and then take the folder of the theme you want to apply and copy it

Bypass Country Restrictions

It is known that some songs on Spotify are released and available for a limited number of countries usually due to labels and artists restricting the license under which they release songs.

If you happen to see songs that are greyed out like this: country_restrictions Then you could try using a tool like https://kira.vercel.app to find out where these songs are available

If you're looking through a playlist you might not see unavailable songs at all if you have this option disabled in your Spotify Settings, so make sure that's enabled playlist_hidden_tracks

You can bypass country restrictions with a Free VPN (even the ones that have a low free quota work just fine) and a Free Spotify Subscription

Steps:
  1. Access to a country you know the song is available in via the VPN Service
  2. Login on spotify.com
  3. Click Profile at the top right and then Account
  4. Click Profile and change your 'Country' to the one you want (you should see the option if you're accessing the website correctly through the VPN)
  5. Then you can shutdown the VPN as you won't need it anymore
  6. After changing the country there you should be able to listen to any song available in that country for about 14~15 days
  7. After the timespan has passed you need to change the Country back to your original country and start again from step 1. if you want to listen to those blocked songs again
What do I do if I have a Premium subscription?

You can't apply the same steps listed above if you have (or you've had in the past) a Premium subscription to Spotify because spotify stores your country information from the credit card you've used to pay the subscription, the only way (that I know of) to change your country with a premium subscription is to get someone else from another country to use their credit card to pay your subscription or to pay a new subscription with a card that has different country information.

Additional Notes:

§ There are some countries that have an additional listening limit:
Japan:

  • Premium Subscribers are not affected
  • 15 hours limit
  • Resets once every 30 days beginning with the login
  • This affects every kind of device except mobiles (patched android mobile application count as tablets)

While there's only one country that has restriction that I know of there may be others, feel free to tell me about others in the comments if you know them

Saving Spotify Songs Locally

Disclaimer: While there is NO way currently to download spotify songs directly from their API with a Free Subscription or with any hacky method there are solution that allow you to achieve similar things, I'm here to write about 2 of those I know

Spytify

Spytify is a way to get Spotify streamed songs locally on your device, it works by recording Spotify's streamed sound.

Pros:
  • You can get any song you can stream on Spotify locally without a Premium Subscription
  • Works really well with the Country-Restriction-Bypass I wrote about before to stream and record region-blocked songs
Cons:
  • It's not a download so you have to stream the song at least once before being able to listen to it locally
  • It's Windows-Only
  • You can only record songs up to 320kbps (Spotify Premium) or up to 160kbps (Spotify Free) of bitrate quality (lossy MP3)
Steps:
  • Download Spytify from https://jwallet.github.io/spy-spotify/overview.html
  • Read about the tool on the different pages of the website linked above
  • Extract the zip file on your computer
  • Setup Spytify to your needs
  • Start a session to record your Spotify Songs

Deemix

Allows you to download songs from Deezer Music.

Pros:
  • You can download songs of any quality from lossy mp3 to lossless flac
  • You can input directly the spotify song link
Cons:
  • Not all songs that are released on spotify are also released on Deezer Music
Steps:
  • Download the latest deemix-pyweb version here and extract/install it
  • Open the settings, in the Login section click "How do I get my own ARL?" and follow the guide to get your ARL
  • Paste your ARL inside the right text box and save
  • Once you're logged in scroll to the end of the settings to find the Spotify Features section
  • Click on the link "How do I enable Spotify Features?" and follow the guide
  • Paste all the information in the right text boxes and save

Note: By default deemix will download songs in MP3 format at 320kbps of bitrate although you can change it in the Downloads section of the settings

Now you're all set and you can paste links to spotify songs to download them together with all their metadata / Otherwise you can just look for a song in Deezer and download it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment