Import a Spotify library from Spotify's data export: choose the playlists, liked songs included

Open
#22 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@joeatethebeans is already working on this.

Since Nov 15, 2026.

  • #152 by @joeatethebeans — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
json
Domain
data

Research direction

This builds on issue #21 and already has open pull request #152 against it, so check that PR and the comment thread before starting. The payload names no source files, so begin by reading how the list import from #21 matches songs by title, artist and album. The work is done when a Spotify export zip or its JSON files can be previewed, selected, imported, and re-imported without duplicates.

Written by the indexing model from the issue text.

Description

enhancement

Builds on https://github.com/joeatethebeans/Melodex/issues/21. It needs no Spotify API, developer app or Premium: Spotify's API now needs Premium for developer apps, and a self-hosted app can't count on it.

Anyone can ask Spotify for a copy of their data (Account → Privacy → Download your data, "Account data"). It comes as a zip a few days later, holding the library (YourLibrary.json: liked songs, albums and artists) and every playlist (Playlist1.json and so on), each song with its name, artist, album and Spotify URI.

  • Upload the zip (or the JSON files from it). Melodex reads it and lists what's there: liked songs, each playlist with its song count, saved albums and followed artists.
  • Choose what to import: tick or untick each playlist, liked songs, saved albums and followed artists. All is ticked to start with.
  • Liked songs become a playlist ("Liked Songs" by default, renameable). Each playlist keeps its name and order, under a folder of your choice ("Spotify/" to start with).
  • Saved albums are added to the library, to be requested like any album, and followed artists are added as artists.
  • Songs are matched as in the list import, by title, artist and album (the export has no ISRCs or lengths). The preview shows each playlist's matches before anything happens.
  • Importing again updates, rather than duplicating: playlists are recognised by name and songs by their Spotify URI, so a later export brings only what changed.
  • The guide says how to ask Spotify for the export, and that it takes a few days.
Dominant language
C#
Stars
0
Forks
0
Avg merge
9h 10m
Merged PRs (30d)
126

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Dextrd/Melodex

All issues in Dextrd/Melodex

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.