Skip to content
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

spotify: handle MP3_160_ENC #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

spotify: handle MP3_160_ENC #2

wants to merge 7 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 30, 2016

add lib/crypto.js: handles all key generation and decryption functionality
modify lib/spotify.js: handles sneaky album_art messages
modify lib/track.js: play now includes decryption transformer in pipeline
modify lib/util.js: added hex2bin and bin2hex helper functions
modify package.json: commit changes require newer superagent

add lib/crypto.js: handles all key generation and decryption functionality
modify lib/spotify.js: handles sneaky `album_art` messages
modify lib/track.js: `play` now includes decryption transformer in pipeline
modify lib/util.js: added hex2bin and bin2hex helper functions
modify package.json: commit changes require newer `superagent`
ghost referenced this pull request in Shigawire/node-spotify-web Apr 30, 2016
removes the dependency on http://git.io/WyCx0Q
} else if ('album_art' == command) {
var js = args[0][1];
try {
vm.runInContext("window = {eval: eval}; " + js, this._context);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, this is some album art I can get behind!

theSmallNothing and others added 6 commits May 1, 2016 17:25
modify package.json: remove references to `protobuf`
modify lib/schemas.js: remove references to `protobuf`, make `protobufjs` the only parser
remove proto/*.desc: only required for the `protobuf` module
So as it turns out, the old code seems to have taken the very first "album_art" message over to every single track that followed, if an Album or Playlist was fetched.
This code basically runs it through a new Context within the code-execution VM every time one of those messages is being received.
Fix for trying to fetch a whole album / playlist at once.
Fix library method not being able to fetch saved tracks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants