Skip to content

This program passively downloads songs streamed through Spotify while the user is listening to them.

License

Notifications You must be signed in to change notification settings

Ozuru/Passive-Spotify-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passive Spotify Downloader by Ozuru

What is Passive Spotify Downloader?

Passive Spotify Downloader (PSD) passively downloads songs streamed through Spotify. It is intended to be ran in the background while listening to Spotify. PSD detects when a song is being played and records it as it's being listened to.

I started this project because I was annoyed how how Spotify's mobile app has thousands of ads compared to the few I come across on the computer. When Spotify is playing, the program downloads the file. Optimally, the output file is synced with mobile to allow cross-platform playing. If a file has been recorded already, it creates a copy of it in a file with the timestamp.

Example output of the program running:

Example output

What do I need to run Passive Spotify Downloader?

  1. Virtual Audio Cable
  2. Audio Router (if this is removed, I will upload a mirror)
  3. Python 2.7.x

Setup Guide

This guide assumes you have everything installed and the program's files extracted somewhere.

  1. Download and extract the files somewhere. It doesn't matter where.
  2. Open Audio Router and Virtual Audio Cable's Control Panel and Audio Repeater.
  3. In Audio Router, make Spotify output to Virtual Audio Cable's Line 1.
  4. In Virtual Audio Cable's Audio Repeater, set your wave in to "Line 1 (Virtual Audio Cable)" and wave out to whatever your speakers/headphones are set to.
  5. Ensure the sample rate (in Audio Repeater) is set to 44100. This is what Spotify plays at.
  6. Set the total buffer to 500 and buffers to 12. Increase this if you have issues with the audio quality.

You're done! What we effectively did is route Spotify's output to a separate audio cable line and then route that audio to your speakers. This is so you can listen to Spotify while it is recording and isolated. Enjoy the music.

Usage & Configuration

To run the program (after opening Spotify):

python spotifyrip.py

The program will then list all devices. Type the number of the Virtual Audio Cable input and then hit enter. It is typically the first one that is highlighted green. See the example below.

Interface selection printout

Once selected, go ahead and resume play on Spotify. It will then start recording and give a progress bar and ETA:

Recording song printout

To stop the program, a CTRL + C interrupt exits it gracefully.

STORAGE_FOLDER

This value is the path to where the storage folder is located. No trailing slashes.

Credits

spotifyapi.py

About

This program passively downloads songs streamed through Spotify while the user is listening to them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages