Skip to content

linking spotify, youtube, soundcloud and jellyfin with RAG & kmeans (tbd)

Notifications You must be signed in to change notification settings

robingould/music-linker

Repository files navigation

Music Linker: Steal all your friends music with a single copy-paste! Connect all of your cross-platform music together, with the click of a button(s)!

Spofity Example Gif

Example usage for spotify conversion

Cleanly link and aggregate all music from soundcloud, spotify, youtube together on jellyfin automatically

Has this ever happened to you?

"Oh no! My new friend just sent me a Spotify playlist but I don't even have Spotify premium!! Damn... that sucks... If ONLY there was an easy way to copy and paste that link and get the music sorted into playlists by similarity on my self-hosted Jellyfin server in under 15 mins, also I have seperate Spotify, Youtube, Soundcloud and downloaded playlists, it really sucks that they're all seperate and I can only listen to one at a time"

(The first thing has never happened to me but you can be my first if you want, just send me a Spotify playlist haha...pplease)

Uses RAG with GPT-4 (~$0.003 per song) to fix Youtube "junk" names and get album names (for Jellyfin file system).

For example: Kylie Minogue - Can't Get You Out Of My Head (Official Video) -> Kylie Minogue - Fever - Can't Get You Out Of My Head

Uses Spotipy search as the service to augment GPT-4 responses.

Jellyfin file structure:
    Music
    ├── Some Artist
    │   ├── Album A
    │   │   ├── Song 1.flac
    │   │   ├── Song 2.flac
    │   │   └── Song 3.flac
    │   └── Album B
    │       ├── Track 1.m4a
    │       ├── Track 2.m4a
    │       └── Track 3.m4a
    └── Album X
        ├── Whatever You.mp3
        ├── Like To.mp3
        ├── Name Your.mp3
        └── Music Files.mp3

Once audio is downloaded by proper source and sorted into the Jellyfin structure, the goal is to try KMeans, where the cluster amount is how many playlists we want. My goal is to use similar heuristics to https://everynoise.com/, we'll see how well that goes.

*Note, I spent too much time (1 hour) on the processing animation, so I'm NOT making a GUI. CLI tool forever.

About

linking spotify, youtube, soundcloud and jellyfin with RAG & kmeans (tbd)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages