Create/update a Spotify playlist from a local m3u playlist
Project description
Convert local playlist to Spotify playlist
Currently works for m3u files; m3u8 support to come!
Usage
usage: tospotify [-h] [-v] [--public] [--playlist-id PLAYLIST_ID]
spotify_username playlist_path
Create/update a Spotify playlist from a local m3u playlist
positional arguments:
spotify_username Spotify username where playlist should be updated.
Your email address should work just fine, or could
find your user id through e.g. the developer console
playlist_path full path to the playlist
optional arguments:
-h, --help show this help message and exit
-v, --verbose print all the steps when searching for songs
--public playlist is public, otherwise private
--playlist-id PLAYLIST_ID
do not create a new playlist, instead update the
existing playlist with this id
Example
-
Linux/MacOS
tospotify --verbose "john.doe@gmail.com" "D:/playlist/name.m3u" -
Windows*
python -m tospotify "john.doe@gmail.com" "D:/playlist/name.m3u"
*entry_points does not seem to simply work on Windows
Requirements
-
First need to enable Developer Dashboard and your 'app'.
- Go to https://developer.spotify.com/dashboard/login
- Create an app
- Get the client id and client secret from there for step 2
- Edit settings and whitelist a redirect uri; for default use
http://localhost:8888
-
Setup some environment variables:
Linux
export SPOTIPY_CLIENT_ID="<paste-from-dev-dashboard>"
export SPOTIPY_CLIENT_SECRET="<paste-from-dev-dashboard>"
export SPOTIPY_REDIRECT_URI="<your-chosen-uri>"
Windows
Same as linux but use set instead of export
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tospotify-0.1.1.tar.gz.
File metadata
- Download URL: tospotify-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e25aa7b946a32c4d174ae9e5ad375a84cbaa1dd0f3e49b631cebee4357409619
|
|
| MD5 |
4ebc3c19434a861c28437d6e5c5143fb
|
|
| BLAKE2b-256 |
7c7fb078f0964dd5c5e4f782dfeda4ac980824a5ab3b669b1f26ee340a01afaf
|
File details
Details for the file tospotify-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tospotify-0.1.1-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96d2edbc0846616a015ebb7b2fc18fc528e73aed130b209652f3cb436c0f0abc
|
|
| MD5 |
af1ac79058edae1bf25456a0f5ac5f6d
|
|
| BLAKE2b-256 |
437cfc5e6cd6ce6142fa307acd8e6e2b9b2f42ff15529a184e41a3ffbf09af96
|