-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site support request: Spotify #10344
Comments
So I'm doing a bit of research on this, and it looks like an easy way to get metadata is by using
Now I just have to figure out how Spotify encrypts their music. From what I can tell it downloads data from Edit: Playlist support will probably come later. See comments below |
The Spotify API involves a pair of API key and API secret. In general it's not acceptable for youtube-dl as all sources codes are public, and API keys may be abused. |
Only user related stuff seem to use API keys, so things like getting info about a track using |
Adding support for tracks and albums can be the first step. |
This may help |
jrnewell/spotify-ripper is now a 404... Spotify might have finally got to it. I wasn't going to go that route anyways, because after a quick search it seems like anything that relies on libspotify requires API keys and/or a premium account, so I thought that wasn't really good for youtube-dl. I know the gist of how Spotify requests and plays music via the web player, but with school I don't have much time to work on this. I do still plan on working on this whenever I have free time, I just don't know when. Also, is there any websocket support in youtube-dl or should I start looking at reverse engineering other platforms such as the android app? |
Did you get far with this? as I have the audio file output. if you click this link >> It will output the audio file. I've noticed 9f7f829930e4516a3171fd867d87f9626decbed8 stays in all the URL's I think anyway I've not tried another album or artist yet. I'm trying to figure out how to decrpt it and I think it might be base64 is it? not 100% sure on that, but more to the point, I wanna know how this lines up with the artist info you can pull from the API as if i can replicate the function that would be awesome failing that I have another idea and spotify won't even know I'm streaming from their site. |
Spotify ID's are base 62 (and only sometimes base 64? I don't know), and get converted to base 16 somewhere along the way (I have some notes on this here [note that this is incomplete and may even be wrong]). The files downloaded from audio-mp3-fa.spotify.com/mp3enc are encrypted and I haven't been able to figure out how to decrypt it yet because I don't have much time. Authentication uses web sockets and as far as I know youtube-dl doesn't support that yet, so I was thinking to decompile the android app, but I have no experience and it's obfuscated too, so that can take some time. That's about all I figured out so far, and keep in mind, I have never done anything like this before, so a lot (if not, all) of this could be wrong Edit (27/10/16): BTW, links from audio-mp3-fa.spotify.com/mp3enc only last for a bit before they expire. That's why there's a Edit (01/01/17): I don't feel like making a new comment and notifying everybody, but I also want to let everybody know that I gave up on this long ago, so don't expect anything from me. |
@Starsam80 |
Could code from https://github.com/ritiek/spotify-downloader be used for this? |
@Rudloff no:
for that, you can simply go to Youtube Music and download from there. |
If the login is the issue, then youtube-dl could just print an error message if no valid login information is provided and only even attempt to properly download songs if the -u and -p arguments are given. |
i don't understand how to use youtube-dl to down spoty playlist.... for win user... all repo above it is write on python for linux... and for win?? |
|
ok. how to down this playlist? |
Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2016.08.13. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Description of your issue, suggested solution and other information
Since there is support for Soundcloud, I don't see why Spotify can't be supported. The links above may be blocked by a simple login, but you can create a free account if needed. https://developer.spotify.com/ also looks useful.
The text was updated successfully, but these errors were encountered: