Live data from Hacker News

Spotifyd

github.com

11–20 of 242 posts

Re: Spotifyd

#11
Have tried this several times but I find it drops off the network as a remote play device.

If you have a PC with the Spotify app running, that appears as a remote play device to other clients.

Otherwise I found ncspot to be more reliable than spotifyd: https://github.com/hrkfdn/ncspot/

Re: Spotifyd

#12
post #5

Has anyone ever gotten this to work? I must have tried it a dozen times by now, but never once gotten it to work.

I was in the same boat - I can't remember the exact issue now - but I had to both compile locally and revert back to an older version for it to work. There were issues on Github relating to my exact problem but I can't find them now. Currently running 0.3.3 as my daily driver, no issues.

Re: Spotifyd

#13

I‘m kind of amazed that this is still working. I would have thought that Spotify is rather strict with their eco system. I was always interested in their techstack, and how everything works on their end, but unfortunately I'm not into Java, which is the reason I never applied for a job there.

> I‘m kind of amazed that this is still working.

this is why:

> Spotifyd requires a Spotify Premium account

which is actually not true. you can change some code in the source, to allow playback on free accounts. Spotify hunts down anyone who posts code like that though

Re: Spotifyd

#14
post #13

I‘m kind of amazed that this is still working. I would have thought that Spotify is rather strict with their eco system. I was always interested in their techstack, and how everything works on their end, but unfortunately I'm not into Java, which is the reason I never applied for a job there.

> I‘m kind of amazed that this is still working. this is why: > Spotifyd requires a Spotify Premium account which is actually not true. you can change some code in the source, to allow playback on free accounts. Spotify hunts down anyone who posts code like that though

I had no idea that was possible. Will be Googling for this later today. Thanks Google!

Re: Spotifyd

#15
post #13

I‘m kind of amazed that this is still working. I would have thought that Spotify is rather strict with their eco system. I was always interested in their techstack, and how everything works on their end, but unfortunately I'm not into Java, which is the reason I never applied for a job there.

> I‘m kind of amazed that this is still working. this is why: > Spotifyd requires a Spotify Premium account which is actually not true. you can change some code in the source, to allow playback on free accounts. Spotify hunts down anyone who posts code like that though

Isn't there a better way to do this? Rate limiting, splicing ads into the audio signal for non-paying users, providing a stable API for paying users only, etc. Beats siccing your lawyers on hapless geeks.

Re: Spotifyd

#16
Always great to see new ways to integrate with Spotify. I think that if you're paying for a Spotify Premium subscription you should be able to stream music wherever you want!

However Spotify doesn't agree. If this is based on librespot its using stuff Spotify doesn't support and could easily shut down for unauthorized clients any time.

Their supported paths are iOS and Android SDKs for mobile, and the Web Playback SDK for desktop [1]. I've been using the web SDK in anger to build a jukebox app [2] and its only so-so.

First, you're under the confines of a web browser which has some pretty big tradeoffs over the experience and system integrations you can build.

Next, song playback works as advertised but there are many things you can't do like introspect the queue or prevent Spotify Radio from kicking in.

The latter is downright hostile to controlling exactly what songs you hear. I assume that always going into auto-recommendation mode is intentional to juice playback stats.

Kudos to spotifyd for offering total control over how and where you stream music you're paying for.

1. https://developer.spotify.com/documentation/web-playback-sdk...

2. https://www.getjukelab.com/

Re: Spotifyd

#17
post #3

I thought this died with Spotify’s nerfing/killing of API access. I had a project going with Mopidy which relied on it that I just dusted off the other night after a year and it wouldn’t authenticate. Kept saying “requires Premium account” despite my account being Premium.

This uses librespot, not the original library that Spotify published and recently killed. Mopidy is also moving to librespot, but it's complicated with their gstreamer architecture (though I believe its mostly functional at this point).

Can't wait for mopidy to switch over - I have "Pirate Audio" PI hats that work are based around mopidy and I am not clever enough to figure out how to use the LCD screen with others.

Re: Spotifyd

#18

Always great to see new ways to integrate with Spotify. I think that if you're paying for a Spotify Premium subscription you should be able to stream music wherever you want! However Spotify doesn't agree. If this is based on librespot its using stuff Spotify doesn't support and could easily shut down for unauthorized clients any time. Their supported paths are iOS and Android SDKs for mobile, and the Web Playback SD…

> However Spotify doesn't agree.

My naive assumption is that Spotify would love to, but the record labels don't agree.

Re: Spotifyd

#19
This uses librespot for the actual communication with Spotify's servers.

Note that to get it to support Spotify Free, you need to compile a custom librespot with this part of the code commented out, that checks for Spotify Premium: https://github.com/librespot-org/librespot/blob/6dc7a11b09b5...

And then use this with spotifyd instead of the original.

Re: Spotifyd

#20
post #5

Has anyone ever gotten this to work? I must have tried it a dozen times by now, but never once gotten it to work.

Yep, I have it running on a couple of Raspberry Pi and it works well. I hacked up one librespot on one of them to spit out track names in the event hooks so I could show them on an eink display hat!
Post reply on HN