Skip to content

Map you local media files into a playlist on Spotify

Notifications You must be signed in to change notification settings

adgud/spotify-local-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

spotify-local-mapper

Description

A simple tool to map you local media files into a playlist on Spotify using Python 3.

Installation

Make sure that the dependecies are installed, then simply download the script and run it.

Spotify authentication

This script will use API keys loaded from file spotify_api_keys.json and use Spotify Authorization Code Flow if such file exists in the script directory. This file should have the following format:

{
  "client_id": "SPOTIFY_CLIENT_ID,
  "client_secret": "SPOTIFY_CLIENT_SECRET",
  "callback_uri": "https://example.com/callback/"
}

Authorization will be performed only once and cached tokens will be used in subsequent runs.

If file spotify_api_keys.json does not exist or contains malformed data, Implicit Grant Flow will be used, using this app's keys. Authorization tokens will be cached only for an hour and you will be propmted for access token again.

Dependencies

Todo

  • Convert to proper package, so that dependencies can be installed automatically
  • Include interactive mode, where user can select which track should be mapped and change search query

About

Map you local media files into a playlist on Spotify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages