Giter Site home page Giter Site logo

jam's Introduction

jam

Converts Spotify playlists from clean -> explicit

example output

Motivation

Spotify likes to be inconsistent with their playlists, mixing clean and explicit songs within the same playlist. To me, this is annoying. I don't want to listen to censored music. This tool is a solution to this inconsistency.

Usage

Convert a playlist to explicit:

jam "Power Gaming"

This will create a new playlist in your account titled Power Gaming with clean songs swapped with their explicit version.

Convert a playlist to explicit (dry run):

jam --dry-run "Power Gaming"

This will skip the playlist creation step.

Convert a playlist to explicit while supplying an output name:

jam "Power Gaming" --output "Cool Gaming Music ๐Ÿ˜Ž"

This will create a new playlist in your account titled Cool Gaming Music ๐Ÿ˜Ž with clean songs swapped with their explicit version.

Installation

You'll need to compile from source. The following compiles jam and places it in ~/.cargo/bin

  1. Get a stable rust toolchain with rustup
  2. Run cargo install --git https://github.com/jacobmichels/jam
  3. jam is now installed ๐ŸŽ‰

Authenticating with Spotify

jam uses oauth to authenticate with Spotify. Authenticating is a straightforward process handled at runtime. The access token and refresh token are cached at ~/.jam/credentials.json

jam's People

Contributors

jacobmichels avatar

Watchers

 avatar

jam's Issues

Fix auth

Sometimes the auth breaks, leading to 400 response errors. Not sure why it happens, but it could be something wrong with the token refresh mechanism.

break up run function

The run function is too long and unreadable, break it up into smaller units with functions

Dedup songs

A playlist could have contained the explicit and non-explicit version of the same song (who knows why, but it's possible and I have seen this on official Spotify playlists). Write some code so the same song doesn't appear twice on a generated playlist

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.