Skip to content
Migrate mp3 tracks stored on disk to Spotify
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
browser Initial commit Dec 29, 2019
musiclib Add main bulk of program Dec 29, 2019
.env.example
.gitignore Initial commit Dec 29, 2019
README.md Add missing callback setting to instructions Dec 31, 2019
go.mod Add main bulk of program Dec 29, 2019
go.sum Initial commit Dec 29, 2019
main.go Add special characters Dec 30, 2019

README.md

Spotification

Migrate mp3 tracks stored on disk to Spotify. It does this by parsing the file name, searching the Spotify database and then adding them to a unique playlist.

This is different to playing local mp3 files through the client which is what appears in most search results on this subject!!

I wanted to find the Spotify tracks because:

  • It allows the tracks to be accessible on all devices
  • Clears up my hard disk space
  • Gives the ability to share tracks and playlists
  • Have all the album artwork and meta data all set and good in the client

It also appears playing local files is quite a hidden feature so I wouldn't be surprised if support for this is eventually dropped.

Getting Started

  • Register a new app through Spotify's developer dashboard.
  • Add the redirect URI http://localhost:3000/callback in the app settings.
  • cp .env.example .env and fill in your app id and secret.
  • Ensure Go 1.13 is installed.
  • Run go run main.go path/to/music
You can’t perform that action at this time.