A little userscript to open spotify links in the desktop app. Posted by 1 year ago. A little userscript to open spotify links in the desktop app. I was tired of spotify links opening in the web player, and seeing that it's the expected behavior at the moment, I decided to fix it myself. It should work with tracks, playlists. After an update (no idea when exactly it began), it started to open in the web player. I have to click 'play on spotify' in order to get it to play in the application. I've checked all the necessary boxes, both on the web player settings to allow playing in the desktop app and on the desktop app to allow opening the app through the web. The advanced settings used to have the option to have links open in the desktop app. But that option has recently disappeared. Seems like a very obvious and useful feature, and just strange to suddenly remove that functionality.
7 Free Ways to Download Spotify to MP3 in 2020
With more than 40 million songs, Spotify offers a massive music library that you can listen to online without taking your storage space. If you pay the premium subscription fee, you can also listen to music offline.
The only problem is that you can’t transfer them anywhere or play them with other music players other than Spotify because the music files you downloaded with Spotify are DRM(Digital Rights Management) protected. In this article, I will show you 7 ways to download songs from Spotify as MP3 without recording even if you don’t have Spotify Premium. No matter what devices you use, you can find at least 2 methods that work for you.
Disclaimer
All these methods are for personal or educational use only.
You should not use any of these tools to pirate or distribute music.
Some of the methods may be illegal to use this in your country, so be informed.
Method 1: Download Spotify song or playlist with Siri Shortcuts
If you are using an iOS device, you probably have heard of the automation application Shortcuts, which is the updated version of Workflow. I have three shortcuts to help you download music from Spotify.
If you are not familiar with Shortcuts, you can free download it from AppStore and get a few pre-made shortcuts in the Shortcuts Gallery to see how it work. To get the shortcuts that I am about to show you, you just open the link in Safari to download it.
This Spotify playlist downloader can only download an entire Spotify playlist. You will have an option to select some of the tracks in the playlist to download if you don’t want to download them all.
Note: This only works for playlist. It won’t work if you input a Spotify track link. It is recommended to run it from Spotify share sheet.
You can simply copy the Spotify playlist link from Spotify app and run this shortcut. You can also tap the Share button to run this shortcut from the share sheet. Besides the playlist link, you can also input playlist ID Or playlist URI to download Spotify playlist to MP3.
When downloaded, you can open the Files app, and then select iCloud > Shortcuts > Music to check the downloaded MP3 file. If you are not familiar with iOS Shortcuts, be sure to watch this video below to see how it works.
For advanced users, you can also use Shortcuts to Move Spotify Playlist to Apple Music and vise versa. Though the authentication process is a little complicated when you want to transfer playlists to Spotify by using Spotify API.
Method 2: Download Spotify to MP3 Using Telegram Bot
If you use Telegram, you can simply use a Telegram bot to download free music whether you are on Android or iOS. It does not require any setup or your Spotify account login info. All you need is this @SpotifyMusicDownloaderBot. After you get this bot, type “/start” (without quotes) and then you can paste any Spotify track link to start downloading music for free. If you are using iOS, you may want to tap the Share button and save to Files after the music is downloaded.
If you do like using Telegram bots to download music, you probably also want to check this post to get more Telegram Bots for music.
Method 3: Download Spotify Playlist to FLAC or MP3
There is another open-source software called Deezloader, which is developed to download music from Deezer, can also be used to download a playlist from Spotify. The software actually converts the Spotify playlist to Deezer playlist and then download music from Deezer. You can set it to download Spotify Playlist as MP3 or FLAC. The lastest version Deezloader Remix 4.2.2 also allows you to download any single Spotify track and it much easier to set up.
Step 1. Download and install Deezer Remix. Log in with your Deezer account (free account also works).
Step 2. Go to this link: https://developer.spotify.com/dashboard/applications and log in with your Spotify account (free account works).
Step 3. Click on Create a Client ID and then compile the form as you like.
Step 4. Save the settings and then you will see the Client ID and Client Secret. Copy the Client ID and Client Secret to Deezloader Remix.
If you are using an older version of Deezloader Remix, the setup is a little bit complicated than this. You can refer to this video to see the configure process.
As you know, not all tracks on Spotify are also available on Deezer, so you will see some tracks are failed to download because Deezloader cannot find the matched songs. If you want a tool to download all tracks from Spotify playlist, keep reading to see the next tool.
Update: Since Deezloader is discontinued, you can only use this method to download 128kbps MP3. If you prefer high quality, jump to Method 5.
Method 4: Download Spotify to MP3 with AllToMP3
AllToMP3 is free open source software that allows you to download music from Spotify, YouTube, SoundCloud, and Deezer. It is available in Windows, macOS, and Linux. If you check the source code, it is easy to find out that it actually matches the Spotify music track with YouTube video and convert YouTube video to MP3, so the music quality is not as good the other methods. You can free download from its website or Github.
After installation, you can paste the Spotify song link or playlist link and press Enter to start downloading. The music, by default, will be saved in the Music folder. The downloaded music files include all the tags and cover art, but the quality is nowhere close to the next free tool.
Method 5: Download Spotify Music Using Allavsoft
Allavsoft is your ultimate media downloader software for Windows and Mac. It allows you to directly download Spotify playlist, album music to MP3, FLAC, WAV, M4A, WMA, etc with ID3 tags.
The latest version allows you to download Spotify music as FLAC (1441 kbps). Unlike Deezloader, you download all the songs that Deezloader cannot download, literally, unmatched songs with Allavsoft. For me, Allavsoft is the best Spotify Music Downloader.
Once you get it installed, you can copy the Spotify music link whether it is a song, album, or playlist and then launch Allavsoft. The program will automatically paste the URL and you just need to click Download to start downloading.
By default, it saves Spotify music to MP3 as 320 kbps with artwork and other metadata, so you don’t need to check the option “Automatically Convert to”. If you choose the Best Available quality, you may find some songs are downloaded as FLAC 1411 kbps, which is really cool. If you want to convert Spotify Music to FLAC, WAV, AIFF, AAC, WMA, DTS, etc, you can click the “Automatically Convert to” button to select the specific format from the drop-down menu.
Besides Spotify, Allavsoft allows you to download music from Deezer, SoundCloud, MixCloud, and download videos from Udemy, Lyda, YouTube, Facebook, etc. That is to say, Allavsoft is the only downloader software that you ever need.
Method 6: Convert Spotify music to MP3 with TuneMobie
There are many programs that claim to be able to convert Spotify, but deep down they are recording the audio, TuneMobie is one of them. I tried both free and paid versions. Let me tell you how it really works.
When you open this program TuneMobie, it asks you to launch the Spotify app or download it if you haven’t. Then you can see in the preference where you can select to save as mp3, m4a, WAV, and FLAC. These are all the supported audio formats and other settings that you customize.
When you try to convert a song, the Spotify app actually plays the song, but you hear no sound. Compared to other audio-recording kinds of competitors, Tunemobie Spotify Converter is 5 times faster. Usually, it takes less than 1 minute to convert a song.
You can also copy a playlist link to download Spotify playlist as MP3 or other formats. The trial version allows you to download (record) unlimited tracks for the first 3 munites in 30 days, which is much better than its competitors.
Method 7: Download Spotify with a Chrome extension
If you use Chrome web browser, you can install this free extension and then you can see a download button appears when you go to Spotify web player. You now can click on the download button to download almost all the songs from Spotify web player.
Why do I say almost? Because this extension certainly is not downloading music from Spotify directly. You just download music from its own server, so you will see some Spotify tracks are not available in their server for downloading. Some tracks downloaded using this extension may not be the same version as the Spotify version. Bonus: Chimera — Multiple Source Music Downloader for Advanced Users Only
Chimera is a command-line based multiple source music downloader that allows you to download music from Spotify, Deezer, Tidal, Soundcloud, Napster, Qobuz, Google Play Music, etc.
It is open-source and completely free to use for educational and private use only. It is very powerful, but the setup process is more complicated than the other methods. You can choose Spotify source from Deezer, Tidal, or Qobuz.
As you know, Tidal and Qobuz provide Hi-res quality music. If you have paid subscription, you can use this tool to download Spotify music in very high quality in FLAC format.
You will need to grant your Spotify account through Spotify client ID and client secret. Based on your choice, you need to also set up Deezer, Tidal, or Qobuz account. For detailed steps, check this guide to see how to set it up.
Conclusion
That’s all the seven different methods for downloading Spotify music to MP3. If you care about music quality, then Allavsoft is the best choice. Personally, I like the Allavsoft method the most because it is convenient, high quality, and with cover art. More importantly, you don’t need any other video/music downloader software anymore once you have Allavsoft installed since it supports more than 1000 websites.
If you really love the iOS environment, then Shortcuts is a great way to download music on iPhone. Now, it is your turn. Which method are you going to try first? If you have other better method to download music from Spotify, please share it in the comments.
Spotify is a digital music streaming service with a freemium business model. This article is mainly about the semi-official, proprietary Spotify for Linux client, which is developed by Spotify's engineers in their spare time and not actively supported by Spotify.[1] Alternatively, there is an online player and a number of open source third-party clients.
Installation
Spotify for Linux can be installed with the spotifyAUR package. If you wish to play local files you will need to additionally install zenity and ffmpeg-compat-57AUR.
Third-party clients
Tips and tricksLimit storage size
Spotify automatically manage a storage size for caching, however one may want to force the size limit preventing the filesystem from filling up.
Append
storage.size (measured in MB) to /home/user/.config/spotify/prefs , e.g. a storage size of 3072MB:
Global media hotkeys
Tip: Many desktop environments come with keyboard shortcuts which work with the Spotify client out of the box e.g. under Cinnamon (Preferences -> Keyboard -> Shortcuts -> Sound and Media), several default bindings are set up to control the player, and these can easily be changed by pressing the preferred keys.
For environments in which controlling Spotify via the keyboard doesn't work automatically, the official Linux client has support for media keys like
XF86AudioPlay . We can use for example xbindkeys to catch the global media keypresses, and then forward them to Spotify using one of the methods below. If you use xbindkeys, ensure that Spotify is restarted after installation and key configuration otherwise the key events will not be properly caught.
MPRIS
The Spotify client implements the MPRIS D-Bus interface which allows external control.
pactl (pulseaudio)
As you might have noticed, MPRIS protocol commands don't include volume control. This is broken within spotify itself, which ignores volume change requests. However, there is a possibility to control volume via pulseaudio's input sink:
The sink number for '$current_sink_num' can be found in the output of command:
You can create a script for changing volume and bind it for example to keyboard shortcut via desktop environments configuration or xdotool described in next section. Here are some examples:
Bash:
This script is based on work done by user Mikołak in this post.
Unfortunately this script is not the fastest solution and if you execute it multiple times via keyboard hotkey, it might become laggy.
Faster (like 10 times) Python code (requires at least Python 3.7 to be installed):
You can save it to a .py file. The last line does the actual job, so you can adjust the command to lower the volume or toggle mute.
Disable track notifications
After version 0.9.10, track change notifications were enabled by default. They can be quite intrusive. To disable them, add the following line to
~/.config/spotify/Users/<spotifylogin>-user/prefs
It is also possible to launch spotify with the
--ui.track_notifications_enabled=false option.
Show track notifications
This article or section is a candidate for moving to playerctl.
Notes: Not specific to spotify. (Discuss in Talk:Spotify#)
playerctl provides a library you can use with python-gobject and a notification daemon such as dunst to show the artist and title in a notification when the track changes.
Skip overplayed radio tracks
This article or section is a candidate for moving to playerctl.
Notes: Not specific to spotify. (Discuss in Talk:Spotify#)
Another use of the playerctl library is to skip tracks that are played too much on radio when you do not necessarily want to downvote these tracks because you may want to hear them again later on that station.
Mute commercials
Warning: Muting commercials is not supported by Spotify and may result in a temporary ban [2]
blockify
With blockify you can mute commercials. It is available in the AUR as blockifyAUR.
To have this start and run in the background every time Spotify starts you will need to automate this yourself:
By placing this script at
/usr/local/bin/spotify , it gets preferred to /usr/bin/spotify everytime you start Spotify, so there's nothing else to change and updates won't break it.
spotblock
spotblock (spotblock-gitAUR) is a resource-efficient ad blocker that runs as a systemd daemon.
Spotify-AdKillerBest Linux Desktop Apps
Spotify-AdKiller (spotify-adkiller-gitAUR) is another alternative to block Spotify ads.
Hosts file
You may also add the following lines to your hosts file to block ads in Spotify :
spclient.wg.spotify.com now appears to block radio and daily mixes, as well as recently played songs.
Remote ControlSend commands via SSH
If you set up ssh on the server, you can send controls from a client to a remote Spotify instance with
where yourcommand can be spotifycmd that you installed on the server, or a dbus script for the linux version, as described above.
Grab the Spotify window via SSH
Aside from grabbing the whole desktop with TeamViewer or VNC to remotely control your server, you can also only grab the Spotify Window from the server to your client.
To do that, you need to configure sshd on your server and install x11vnc on both server and client as well as tigervnc on the client. Then you can use these scripts to grab either the complete dektop or only the Spotify window, which essentially gets you GUI client-like behavior as with MPD.
You will need to copy the second script to ~/.bin/vncgetspotify.sh on the server and the first script to any place on your client.
Finally, to grab the spotify window, run on the client:
or, for the whole desktop:
HiDPI Mode
As the current Spotify build is not DPI aware, the amount to scale the interface by can be specified using the terminal command:
where X is the amount to scale the interface by, e.g 2.
This change can be added to the
spotify.desktop file in order to apply the scaling when launching from the desktop.
To make sure the file does not get overwritten when the package is updated, copy it to you local applications folder:
Now edit
~/.local/share/applications/spotify.desktop and add the --force-device-scale-factor option:
You might need to relaunch your Desktop Manager, before these override changes will be effective.
TroubleshootingDesktop Environment alerts (beeps) mutes Spotify
Comment out 'module-role-cork' in pulse audio configuration file.
Open
/etc/pulse/default.pa with your text editor and comment out:
Or simply unload it with:
Using search causes the whole interface to blink and then crash
Spotify is using an old version of Chromium Embedded Framework and hits a bug causing it to crash repeatedly when trying to use the search. This can be worked around by using the following command line option:
Blinking images and improper rendering while using Spotify Linux with DWM
Start spotify as a floating window.
You can add this rule to the rules array in your
config.h :
This will tell dwm to start spotify as a floating window associated with the tag '2' no matter what window mode you are in. Recompile and install dwm to apply your new settings.
Broken search, browsing or radio
If various tabs like browsing only show a blank screen, the search field doesn't seem to do anything or the radio page is broken (stuck when starting and unsresponsive to input) you might be using a custom locale.
Try setting the environment variable
LC_NUMERIC to en_US.utf8 https://cleverti.weebly.com/blog/spotify-download-tracklist. before starting Spotify.
Deadlock GUI Thread
Can occur under tiling window managers, such as Awesome, when double-clicking new song or playlist. Edit the file
~/.config/spotify/Users/[1-9]*-user/prefs to add or change the following:
Restart Spotify. This will try to disable song notifications which seem to be the cause of the issue (the lack of a notification daemon to receive them makes the UI thread hang). Note that several causes appear to exist for this problem, and this particular fix only applies to select versions of Spotify client, i3 and Awesome, and it may be that additional root causes exist for the Debian and Ubuntu users reporting this issue. Observed with Spotify 0.9.17.1.g9b85d436 and Awesome 3.4.15 and i3-gaps 4.13-2 and Spotify 1.0.64.407.g9bd02c2d.
Note: As of Spotify 1.0.17.75-2,
ui.track_notifications_enabled=false seems to be ignored. On the other hand, some users report not experiencing the deadlock anymore as of Awesome 3.5.6. Deadlocks could be caused by scripts called by Awesome, which rely on buggy spotify dbus properties. See [3].
Note: This issue has multiple causes, so keep track of what you change while researching this. Update this section with additional scenarios and fixes.
Album art and images are missing, show up as squares
Quit spotify, then open spotify preferences
~/.config/spotify/prefs
Change @https to @http:
See original form post here.
Note: As of 1.0.17 it looks like replacing https with http as suggested above can result in no connectivity at all. If this happens an alternative solution is to set 'no proxy' in the GUI use proxychains-ng to force all TCP connection coming from the app through a proxy. Even with HTTP proxies that reject connections on port 80 (and only work for port 443) this works reliably.
Spotify does not detect other devices on local network
If a firewall is in place, open ports 57621 for UDP and TCP. If you use a variant of the iptablesSimple stateful firewall, the following should do it:
It is also possible to restrict the source and destination to the local network.
If you are using Spotify Connect to play music on a wireless speaker or AVR, your firewall needs to be configured for Spotify's mDNS lookup of those. Sadly, it uses a random unprivileged port [4] which makes these firewall rules rather nasty. Fortunately, you can restrict the rules to source port 1900 or 5353.
If you cannot detect other linux clients, this may be due to a bug in Spotify related to the user name launching the instance. Spotify will not detect other instances having the same
$HOME environment variable, even on different machines. To circumvent this, either create a dedicated user, or launch Spotify with a different $HOME . The following is a workaround to use your home directory and still be able to detect other devices:
Search Bar text is invisible when using a dark theme
The text in the search bar appears to be hardcoded to be white, making it invisible when using a dark Qt theme. To fix this, you'll need to make an override.
![]()
First create a css file somewhere your account has permission to read/write from (such as your home folder). Call it whatever you like (eg. spotify-override.css).
Open the newly created css file and add the following:
Save the file and exit. Next, you need to add the following to the end of your Spotify launcher (substitute the path with the actual path of your css file):
So your full launch path should look something like this:
Can't play local files
If you get a segmentation fault or error message when trying to play local files e.g.
- it's caused by a missing libavcodec dependency. For PulseAudio users, installing ffmpeg-compat-57AUR Noteburner spotify music converter for mac torrent 64-bit. should fix it. If you get PGP verification errors when you install it you might have to import the correct PGP key.
Not respecting window manager rules
Window manager that try to apply specific rules like starting it on a determined workspace or maximizing it on startup, has no effect, as Spotify doesn't set the WM_CLASS property before creating the window, violating the ICCCM specifications. One solution is to use spotifywm-gitAUR.
GUI hangs while the music plays
Also the previous and next track buttons act with a delay of 10-40 seconds. Spotify by default tries to send notification about next track, if you don't have a notification-daemon installed, Spotify's GUI hangs.
The solution is to either disable notifications in the settings or to install a notification daemon from Desktop notifications.
GUI Borders are gone and app occupies the whole screen over cinnamon panel
If having issue with window borders disappearing and so app goes to a kind of fullscreen but you can't drag the window or change its size on cinnamon, that may be caused by the preferences located by default at text file
/home/yourusername/.config/Spotify/Users/yourusername-user/prefs configs:
![]()
What probably happens is, when both resolutions matches your 'main' monitor resolution values or higher, this may happen when going from two monitors to only one monitor. As a solution, close Spotify, edit
prefs file to remove both configs above, save it, then run Spotify again.
Can't open settings in Wayland
When using Wayland, clicking on the 'Settings' button does nothing. Using the keyboard instead will work (arrows and enter). See [5]
See alsoOpen Spotify Links In Desktop App Linux Mint
Spotify Linux Client
Retrieved from 'https://wiki.archlinux.org/index.php?title=Spotify&oldid=641535'
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |