Comments (6)
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.
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.
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.
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.
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.
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)
- Cargo make build failing HOT 6
- Question: flipping playlists?
- Make A Command To Make The Bot Not Leave When There Is No Music Actually Playing
- enable "message content" for "custom prefixes "? HOT 2
- Aiode Remove from Playlist Error HOT 6
- [BUG] jda-nas dependency failure HOT 3
- cargo-make build failed HOT 1
- Private Bot is Offline HOT 4
- How to implement an auto-queueing script? HOT 2
- Changing Discord theme resets bot volume back to 100% HOT 2
- Please add language settings.
- 24/7
- Execution Error: Error creating bean with name 'aiode' HOT 1
- WebSocket permissions issue? HOT 2
- Persistent Lagging Issues with Self-Hosted Music Bot Instance HOT 1
- Album title tracks play the first track of the album instead (Spotify) HOT 3
- New Patch Issues HOT 3
- auto queue HOT 2
- Aiode will not play MP3 files hosted by Catbox.
- See created aiode playlist ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiode.