News for hackers. Stuff that matters.
Re:Oggify: Download Songs Directly from Spotify by thebiblelover7 on Tuesday April 19, 2022 @07:06AM (#31081606)
Also, how can they tell that it is librespot, and how can they block it? Isn't it basically simulating being one of the official Spotify clients? I really do not want them to get banned or blocked
Re:Oggify: Download Songs Directly from Spotify by y04nn on Tuesday April 19, 2022 @07:25AM (#31081731)
In the authenticate function of librespot:

https://github.com/librespot-org/librespot/blob/650d41b02069...

.set_system_information_string(format!("librespot_{}_{}", version::SHA_SHORT, version::BUILD_ID));

Re:Oggify: Download Songs Directly from Spotify by dewey on Tuesday April 19, 2022 @07:33AM (#31081776)
This user agent could just be set to the official client's user agent and nobody would see a thing, this is a free text field basically.

Then it would be more of an exercise of finding clients behaving in an odd way that's not mapping to an official client. That's way harder to detect though.

Re:Oggify: Download Songs Directly from Spotify by plietar on Tuesday April 19, 2022 @08:16AM (#31082097)
Original librespot author here.

Trying to pretend to be an official client was a game I never wanted to play. There's so many tiny differences in the way I've implemented the protocol it would be trivial for Spotify to notice this if they wanted to. It then becomes an whack a mole game between them and us.

Spotify is fully aware of librespot and has tolerated it so far. If they change their minds are try to block it it would be the end of the road for librespot. This is why, despite repeated requests from users, librespot has never supported free accounts nor downloading files in order to avoid pissing Spotify off. I always knew it would be trivial for anyone to implement this using the librespot source code, but it makes me a bit sad someone actually did it.

(That being said, I personally don't contribute or use librespot anymore, so really I don't care)

Re:Oggify: Download Songs Directly from Spotify by cillian64 on Tuesday April 19, 2022 @09:52AM (#31083096)
I wonder if this is somewhere it would make sense to use a non-free license which restricts how people use the code or what modifications they are allowed to redistribute. It wouldn’t stop anyone motivated from breaking the rules by themselves but it makes things like Oggify less likely to be distributed and so would mean librespot might be more likely to survive long-term.
Re:Oggify: Download Songs Directly from Spotify by meibo on Tuesday April 19, 2022 @09:23AM (#31082732)
This is the curse of open source - once you put the code out there, there's nothing you can do about it.

Currently dealing with this with a project of mine, it's hard to see people take and "abuse it", but there's nothing you can do really - licenses don't stop anyone.

Re:Oggify: Download Songs Directly from Spotify by thebiblelover7 on Tuesday April 19, 2022 @09:27AM (#31082775)
wait, I don't think this allows free downloading. AFAIK, it only works with premium accounts. That was the whole intent for me at least.
Re:Oggify: Download Songs Directly from Spotify by plietar on Tuesday April 19, 2022 @10:14AM (#31083419)
Sorry these were meant as two separate points. People have asked repeatedly to use librespot on free accounts, and (other) people have asked to have librespot download files. I've pushed back on both, and Oggify does the later only.