Skip to content

The config.json file

Lilian Mallardeau edited this page Mar 16, 2022 · 1 revision

The config.json file contains some general settings, as your Deezer ARL (mandatory to download songs), your Spotify API tokens, the desired bitrate for downloaded songs, whether to overwrite file when downloading... and a few other settings.

When first created by running playlist-sync init, the config.json file looks like this:

{
    "arl": "YOUR_DEEZER_ARL",
    "spotifyClientId": "",
    "spotifyClientSecret": "",
    "defaultBitrate": 320,
    "fallbackBitrate": true,
    "overwriteFiles": false,
    "saveArtwork": true
}

Let's explain all these settings.

  • arl: You must enter your Deezer ARL here, between the quotes, instead of YOUR_DEEZER_ARL. See How to get your Deezer ARL
  • spotifyClientId and spotifyClientSecret: If you want to download Spotify playlists, you need to create a Spotify app on the Spotify Developer portal, and paste your Spotify Client ID and secret here. See How to create a Spotify app and get a client ID and secret
  • defaultBitrate: The desired bitrate you want to download songs into. Either 128, 320, or "flac". Note that with a free Deezer account you will only be able to download songs in 128kbps. To download in 320kbps or FLAC, you need a Deezer Premium account.
  • fallbackBitrate: true or false. If true, fallback to 128kbps if your Deezer account can't stream 320kbps or FLAC. If false and defaultBitrate is set to 320 or "flac", downloads will fail.
  • overwriteFiles: true or false. When set to true, redownload and overwrite already existing files. Setting this to false prevents redownloading already downloaded songs.
  • saveArtwork: true or false. If true, downloads each playlist thumbnail in their respective folders as jpg file.