News for hackers. Stuff that matters.
Re:Oggify: Download Songs Directly from Spotify by y04nn on Tuesday April 19, 2022 @06:52AM (#31081525)
To my point of view, sharing this is irresponsible, modifying librespot to download song on your computer is fairly easy and is a good learning exercise to learn Rust. But by sharing this work publicly, you increase chances that librespot will be blacklisted by Spotify and that accounts using it will be terminated. It's a shame, because there is many alternatives to the bad Spotify UI that rely on librespot that will also become blacklisted. There are legitimate uses of librespot and its use should be restricted to those, for the best of users and developers that spent a lot of time making librespot great.
Re:Oggify: Download Songs Directly from Spotify by thebiblelover7 on Tuesday April 19, 2022 @07:02AM (#31081575)
That is true, maybe I should delete the HN listing.

I actually would like to know how to modify librespot to do so, since I am not a developer or know any Rust at all. Thus this project seems useful to me.

Re:Oggify: Download Songs Directly from Spotify by unicornporn on Tuesday April 19, 2022 @08:51AM (#31082407)
> maybe I should delete the HN listing.

Yes please. :)

Re:Oggify: Download Songs Directly from Spotify by thebiblelover7 on Tuesday April 19, 2022 @09:33AM (#31082843)
Now I found that I can't delete it anymore :(. I think I need to ask an admin to do that.

@dang if you're reading this, please delete this listing, Thanks.

Re:Oggify: Download Songs Directly from Spotify by collegeburner on Tuesday April 19, 2022 @09:42AM (#31082950)
Users flagging it can also remove it from the front page.
[dead]
Re:Oggify: Download Songs Directly from Spotify by Kaze404 on Tuesday April 19, 2022 @08:29AM (#31082199)
No one was stoned in the bible for downloading MP3s.
Re:Oggify: Download Songs Directly from Spotify by usrn on Tuesday April 19, 2022 @09:34AM (#31082857)
And if they were Jesus certainly would have stepped in to stop it.
Re:Oggify: Download Songs Directly from Spotify by paulcole on Tuesday April 19, 2022 @09:35AM (#31082869)
What kind of theft (piracy for the pedants) did the Bible give the green light to?
Re:Oggify: Download Songs Directly from Spotify by omniglottal on Tuesday April 19, 2022 @09:53AM (#31083107)
Pedant here. Copyright violation is not theft. Piracy describes another act entirely, too. The bible gives a green light to share words and song publicly, and to duplicate freely for the masses what is in arbitrarily short supply. Even our modern, applicable laws do not mention theft, so you ought try to avoid strawmanning in the future and look up which millenium the DMCA was written for.
Re:Oggify: Download Songs Directly from Spotify by paulcole on Tuesday April 19, 2022 @08:07PM (#31091085)
This is the exact kind of thing I was anticipating.

Regardless of terminology, you’re breaking rules set by someone else and doing something because you feel entitled to do it. Even if the original file doesn’t change you’re taking possession of something you don’t have the right to possess.

Go nuts. It doesn’t fundamentally matter at all. But don’t try to loophole your way out of a situation that is very clear.

Re:Oggify: Download Songs Directly from Spotify by Kaze404 on Tuesday April 19, 2022 @11:16AM (#31084282)
If you consider piracy theft you'd have to consider Jesus multiplying the fish theft. As far as I know he wasn't stoned for it.
Re:Oggify: Download Songs Directly from Spotify by paulcole on Tuesday April 19, 2022 @02:43PM (#31087180)
Fish didn’t have a TOS that I’m aware of. Spotify does.
Re:Oggify: Download Songs Directly from Spotify by Kaze404 on Tuesday April 19, 2022 @03:58PM (#31088179)
That's interesting, because nowhere in Spotify's TOS are the words "theft" or "piracy" mentioned. And even if it was, I don't think basing morals or definitions of words on a single company's terms of service is a good idea. Sure, the TOS probably specifies somewhere that you're not allowed to rip music from their software, but whether doing so is theft has nothing to do with Spotify.
Re:Oggify: Download Songs Directly from Spotify by paulcole on Tuesday April 19, 2022 @08:00PM (#31091011)
We can semantic and pedant this all you want.

But fundamentally you and I both know that Spotify has made rules that say you can’t write a script to download all the songs as MP3s or OGGs or whatever.

If you want to break those rules, go nuts. But don’t hide behind terminology. You’re taking something somebody else doesn’t want you to have because you feel like you’re entitled to it.

Just fucking own it.

Re:Oggify: Download Songs Directly from Spotify by Kaze404 on Tuesday April 19, 2022 @09:55PM (#31091872)
You'd be correct if you didn't word it as "taking". Nothing is being taken from anyone, and this might seem like semantics to you but it's an important point when piracy is being discussed. When piracy happens, the net result is that there's more of it in the world, which is contradictory to theft.

If you think that's immoral or should be illegal, it's a separate discussion. The point here is that for that discussion to be had the distinction needs to be made.

Re:Oggify: Download Songs Directly from Spotify by paulcole on Tuesday April 19, 2022 @10:08PM (#31091958)
No, I’m still correct.

You are taking possession of something you don’t have rights from the original owner to possess. This is true even when the original thing remains unchanged.

Again, I’m not interested in debating the definition of theft/piracy/copying/whatever. It’s a very tired argument made by people who want to validate their decisions and actions.

Just say, “I don’t care. I’ve talked myself into thinking there’s no issue with me doing this so I’m going to do it.” The lengths people will go to argue the semantics of this shows me how clear the issue really is.

Re:Oggify: Download Songs Directly from Spotify by Kaze404 on Wednesday April 20, 2022 @09:02AM (#31096262)
I'm not surprised you're not interested in debating the definition of theft and piracy, considering that doing so would invalidate the inflammatory comment you made originally. It's very easy to keep the moral high ground when you refuse to engage with a subject in good faith while strawmanning every argument proposed, and that is something I'm not interested in engaging with.
Re:Oggify: Download Songs Directly from Spotify by mynegation on Tuesday April 19, 2022 @08:34AM (#31082255)
It is a license violation and - to the best of my knowledge - bible has no opinion on this.
Re:Oggify: Download Songs Directly from Spotify by pineconewarrior on Tuesday April 19, 2022 @08:48AM (#31082378)
The Ferengi Rules of Aquisition have something for this one.

#218: "Sometimes what you get free costs entirely too much".

Re:Oggify: Download Songs Directly from Spotify by thebiblelover7 on Tuesday April 19, 2022 @09:26AM (#31082763)
Good point, I personally think that since I am paying for Spotify, I have the right to get the mp3/ogg files.
Re:Oggify: Download Songs Directly from Spotify by paulcole on Tuesday April 19, 2022 @09:36AM (#31082880)
You’re free to believe whatever you like but in this case you are 100% wrong.
Re:Oggify: Download Songs Directly from Spotify by FerociousTimes on Tuesday April 19, 2022 @10:02AM (#31083233)
Came here for the tech/startup news, stayed for the biblical studies debates
Re:Oggify: Download Songs Directly from Spotify by thebiblelover7 on Tuesday April 19, 2022 @09:43AM (#31082961)
that makes sense, I am renting this. not buying.

Lesson learned.

Re:Oggify: Download Songs Directly from Spotify by thebiblelover7 on Tuesday April 19, 2022 @09:40AM (#31082931)
may I ask why?
Re:Oggify: Download Songs Directly from Spotify by paulcole on Tuesday April 19, 2022 @09:41AM (#31082945)
You’re not buying MP3/OGG files. You’re buying a license to stream songs from Spotify on their terms.
Re:Oggify: Download Songs Directly from Spotify by omniglottal on Tuesday April 19, 2022 @09:47AM (#31083016)
"Streaming" is a transfer of data to the user's computer. The user is simply choosing to manually manage the data already being transferred. This is legal.
Re:Oggify: Download Songs Directly from Spotify by paulcole on Tuesday April 19, 2022 @11:00AM (#31084055)
It may be something you can physically do, but it’s not something that’s allowed by Spotify’s terms of service.
Re:Oggify: Download Songs Directly from Spotify by hoofedear on Tuesday April 19, 2022 @08:46AM (#31082355)
HN moment
Re:Oggify: Download Songs Directly from Spotify by bartread on Tuesday April 19, 2022 @12:07PM (#31085049)
Haha - yeah, I'm (obviously) getting a pasting for it because this is after all HN, but I spotted it and it was a slight WTH moment, and I thought worthy of comment (somewhat justified given it's sparked a bit of discussion). I don't have an axe to grind with OP, and I don't tend to be Spotify's biggest fan (even though I'm also a premium subscriber because of the library they offer), but it simply struck me as quite an odd disconnect.
Re:Oggify: Download Songs Directly from Spotify by FerociousTimes on Tuesday April 19, 2022 @10:00AM (#31083191)
A glorious one at that
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.
Re:Oggify: Download Songs Directly from Spotify by ydlr on Tuesday April 19, 2022 @09:40AM (#31082930)
According to spotify's website, premium accounts are allowed to download songs. Why would they crack down on this more than other third-party clients?
Re:Oggify: Download Songs Directly from Spotify by antifa on Tuesday April 19, 2022 @05:31PM (#31089517)
The spotify premium download feature is more like an encrypted cache that's beneficial when offline or in slow networks.

It's not useful for acquiring files for your personal collection.

Re:Oggify: Download Songs Directly from Spotify by thebiblelover7 on Tuesday April 19, 2022 @09:41AM (#31082947)
I guess because then people could redistribute it under their own terms. Which is pirating, and therefore illegal.
Re:Oggify: Download Songs Directly from Spotify by ipaddr on Tuesday April 19, 2022 @09:51AM (#31083085)
This allows only premium users to download which is allowed under premium terms.
Re:Oggify: Download Songs Directly from Spotify by stanfordkid on Tuesday April 19, 2022 @09:12AM (#31082618)
can't you just use soundflower with some scripting to capture the audio directly at the uncompressed audio card level? There is NO way for spotify to block that.
Re:Oggify: Download Songs Directly from Spotify by recuter on Tuesday April 19, 2022 @09:47AM (#31083022)
It would be recording in real time no? That's very slow :)
Re:Oggify: Download Songs Directly from Spotify by nowahe on Tuesday April 19, 2022 @08:04AM (#31081999)
Also, from what I've seen from previous similar previous projects, they get removed from Github pretty fast by Spotify