mcieno / spotify-sort-by-release

Sort Spotify playlists by release date of tracks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spotify-sort-by-release Spotify

forthebadge

It's 2019 2020 2021 and Spotify still doesn't support sorting playlists by release date of tracks. This simple tool uses Spotify Web API to sort a playlist in this way.

Requirements

Installing

Clone the repository

git clone --recurse-submodules https://github.com/mcieno/spotify-sort-by-release.git
cd spotify-sort-by-release

Install requirements

pip install -r requirements.txt

Install spotify-sort-by-release

pip install .

Usage

You can use spotify-sort-by-release as a command line tool.

  • spotify-sort-by-release library: sorts the library
  • spotify-sort-by-release playlist: sorts a playlist

You'll need an OAuth Token to contact the Spotify Web API, indeed. Make sure you request a token with permissions to create playlists for your account or to edit your library.

The script will create a new playlist and insert tracks into it sorted by release date, so that the "custom order" of the playlist is the desired one.

asciicast

About

Sort Spotify playlists by release date of tracks.

License:MIT License


Languages

Language:Python 100.0%