Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

playlistinator

  • Clone with SSH
  • Clone with HTTPS
  • Name Last commit Last update
    .idea
    .gitignore
    README.md
    main.py

    Playlistinator

    Rebuilds M3U playlists from a directory of music files, allowing you to swap out songs for the higher-quality versions you have elsewhere.

    The purpose of this is to allow downloading and updating a Spotify playlist using spotdl and then replacing the songs in your local library with the higher-quality versions you downloaded.

    The Patches File

    The patches file is a JSON file that contains a list of patches. Each patch contains a source and a target - the source being the relative path to the file you want to replace, and the target being the relative path to the file.

    So, for the following m3u:

    path/to/source1.mp3
    path/to/source2.mp3

    ... if you wanted to replace source1.mp3 with target.mp3, you would write this into a patch file:

    [
        {
            "source": "path/to/source1.mp3",
            "target": "path/to/target.mp3"
        }
    ]