Spotify

From Indie IT Wiki

How to install Spotify on Ubuntu 18.04 Bionic Beaver Linux

https://linuxconfig.org/how-to-install-spotify-on-ubuntu-18-04-bionic-beaver-linux

https://www.spotify.com/jp/download/linux/

Clear Downloaded Songs

  1. Turn off "Available Offline" for all playlists you don't want re-downloaded and taking up space on your phone.
  2. Tap the Cog at the top of the 'Your Library' screen.
  3. Scroll to the bottom and tap "Delete cache and saved data".
  4. Tap the OK button.
  5. Wait for the data to clear... Done.

Thanks - https://android.stackexchange.com/questions/136180/how-do-you-delete-downloaded-songs-in-spotify

Spotify to YouTube to MP3

Spotify --> YouTube --> Computer --> MP3 Player

Now with new interactive mode! (see below)

https://github.com/regisb/spotify-onthego

Install

Redirect URI: https://blank.org

  1. Create a Spotify App
  2. Enable the Google Developers YouTube Data API
  3. Create a Google Developers Credentials API Key
  4. Create a local directory to store downloaded tracks
  5. Run the spotify-onthego
sudo -H pip install spotify-onthego

Upgrade

sudo -H pip install --upgrade spotify-onthego

Usage

spotify-playlist --interactive "Discover Weekly" ~/Music/SpotifyOnTheGo/

Interesting Question

https://github.com/regisb/spotify-onthego/issues/24

Enable the Web Player DRM Content

  • Firefox > about:preferences#content > Play DRM Content
  • Chrome > chrome://settings/content > Protected content > Allow site to play protected content

Thanks - https://support.spotify.com/us/using_spotify/the_basics/enable-the-spotify-web-player/

HOWTO: Convert Spotify To MP3

Spotify -> Grooveshark --> Download MP3

  1. http://grooveshark.com/signup
  2. http://spotify.togrooveshark.com
  3. http://groovesquid.com

HOWTO: QUICKLIST ENTRY FOR UNITY:

gksudo gedit /usr/share/applications/spotify.desktop

In the Gedit text editor select ALL of the existing the text, delete it, and in its place paste the following:

[Desktop Entry]
Name=Spotify
GenericName=Music Player
Comment=Spotify streaming music client
Icon=spotify-client
Exec=spotify %U
TryExec=spotify
Terminal=false
Type=Application
Categories=Audio;Music;Player;AudioVideo;
MimeType=x-scheme-handler/spotify
Actions=PlayOrPause;Stop;Next;Previous

[Desktop Action PlayOrPause]
Name=Play or Pause
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
OnlyShowIn=Unity;

[Desktop Action Stop]
Name=Stop
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop
OnlyShowIn=Unity;

[Desktop Action Next]
Name=Next
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
OnlyShowIn=Unity;

[Desktop Action Previous]
Name=Previous
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
OnlyShowIn=Unity;

NOTE: As you are editing a system file make sure to back it up in case future updates overwrite it.

Thanks to OMG Ubuntu.