r/ComputerCraft • u/Apprehensive-Key-160 • Jul 31 '24
SpotifyCC
Hello everybody. I'm basically not too knowledgeable about Minecraft but I know plenty about webservers. I took on this project solely for clout on the server I was playing on. It turned out to be a huge load of work.
Spotify-CC is a live Spotify music player program that you can run in Minecraft! Spotify-CC uses the Spotify web player API to get real-time data about the song currently playing on your Spotify account.
Essentially the server is receiving a message from the web frontend, using youtube-dl behind the scenes, and converting to CC:audio format, the music and album image information is then being communicated to the lua client.
I couldn't get the stream data directly because of Spotify's protections. But I thought there may be a way around this by redirecting audio with https://existential.audio/blackhole/
I made a pretty awesome pixelation algorithm that uses K-means to get the 16 most significant color clusters. This generated color palette is sent to Lua and applied to the screen for each album cover. I was thinking of separating this part of the code into its own Python script for people to use to display images in CC:tweaked.
Thank you to 9551-Dev for their awesome, pixel rendering library
https://github.com/9551-Dev/pixelbox_lite

I would love for you guys to try it out! I spent a lot of time debugging but I am sure there are still plenty of issues.
7
u/LionZ_RDS Jul 31 '24
Love music projects in cc just cause of how the file format makes things difficult, looks great! Btw your GitHub link doesn’t work, guessing it’s private
3
u/Myithspa25 Jul 31 '24
"Is nice"
- Heavy Weapons Guy
1
u/Apprehensive-Key-160 May 07 '25
I’m working on a new version. Rn it’s down because of the YouTube API
4
u/BootingBot Jul 31 '24
This is really cool
1
u/Mifume Jul 31 '24
Your work looks amazing, I'm trying it out but get an error "this functionality is restricted to premium users only" on your spotify link page even though I am subscribed to a premium personnal plan, any idea why ?
2
u/AidenMouse Aug 01 '24
Hey man. Sad to see you left our server! Glad u made this public tho
1
u/Ok-Competition-1642 Jul 31 '24
This is amazing work. I can't wait to try it out.
1
u/apoc666apoc Aug 08 '24
the web frontend is giving me an error.
1
u/DareTo0REAM Oct 16 '24
The railway.app sites are down
1
u/throwaway42069666720 Dec 01 '24
seems like the website it connects to may be down?
1
u/Sic-Semper-Tyranis May 07 '25
heyo! sorry to necro, ran through the steps and emailed you, got a user hash but now it is saying the user hash is incorrect and the website isnt letting me reconnect. Any fix I could try?
1
u/xman134 Aug 28 '26
so does the link not work anymore?