Giter Club home page Giter Club logo

Comments (6)

JoshuaDoes avatar JoshuaDoes commented on May 28, 2024 1

It's entirely possible as long as you know what you're looking for to be able to interact with Spotify, I have Spotify's raw 320Kbps OGG streams in my Discord bot Clinet :P

from aiode.

robinfriedli avatar robinfriedli commented on May 28, 2024 1

Care to elaborate on that at all or are you just here for self advertisement? The only way to even receive and play Spotify audio for a third party client is using the Web Playback SDK. Since the SDK is not supposed to allow downloading / redistributing the audio I presume you're abusing it somehow. I don't think this is a good and scalable solution for a public bot in 60k + guilds and with 300+ concurrent streams because the SDK can't play several tracks at once and requires Spotify Premium, unless you've found a way around that too. Either way you're at the mercy of Spotify fixing their SDK or potentially even suing you if that's what you're doing.

from aiode.

robinfriedli avatar robinfriedli commented on May 28, 2024

You can search tracks, albums and playlists on Spotify and enter open.spotify URLs or Spotify URIs if that's what you mean. But in reality it is impossible for third party applications to stream tracks from Spotify directly since they use encrypted media extensions, which is why Spotify tracks and looked up and played from YouTube instead. See also #137

from aiode.

JoshuaDoes avatar JoshuaDoes commented on May 28, 2024

Oh for sure, there's the issue of the legality behind it but it's no less severe than Google with streaming the audio of YouTube videos, which I'd argue is a larger risk personally. You're looking for librespot with one or more Spotify Premium accounts for scale, and of course you're at the mercy of the API developers but I've had successful Spotify support for almost two years now with a tested high of 15 concurrent streams through a single Spotify account. As for my bot's legality, I'm just loopholing it with a custom intermediary private service that can be taken offline without risking my own bot, as none of the terms-infringing code nor account details are public.

from aiode.

robinfriedli avatar robinfriedli commented on May 28, 2024

Well I'm certainly no lawyer but as far as I know when it comes to YouTube videos, YouTube does not legally own the videos they serve on the platform but the uploader. So to my understanding, while they certainly can lock you out of their platform for TOS violations I'm not sure if they can take legal actions without a YT content creator pressing charges. In the case of Spotify you're distributing their licensed content. And being a paid service they probably have more interest in actually enforcing that. Though realistically they'd probably send a cease and desist before pressing charges. Again I'm certainly no expert on this but I would say Spotify is riskier. Either way, librespot is certainly good to know, thanks.

from aiode.

JoshuaDoes avatar JoshuaDoes commented on May 28, 2024

You're right, the licensing of the raw audio files is a little riskier, but where I say it matches up is that it's the same licensed songs being streamed through the bot in the end regardless of source. So if you're ever interested in giving it a go, I'm offering to help with setting it up (and I'm also open-sourcing a conglomerate music service player once I'm done with it that supports Spotify and Tidal too, so I have working sample code as well should you need reference since it's gonna replace my music service handler).

from aiode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.