Skip to content

Commit

Permalink
Remove Spotify highres for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jishi committed Jun 19, 2017
1 parent cd64a7b commit 96e6c94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
1 change: 1 addition & 0 deletions lib/helpers/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class RequestError extends Error {
const msg = `Got status ${res.statusCode} when invoking ${options.path}`;
super(msg);
Object.assign(this, options);
this.name = 'RequestError';
this.statusCode = res.statusCode;
this.statusMessage = res.statusMessage;
}
Expand Down
6 changes: 3 additions & 3 deletions lib/services/spotify.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function tryGetHighResArt(uri) {
}

module.exports = function (services) {
services[9] = {
tryGetHighResArt
};
// services[9] = {
// tryGetHighResArt
// };
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sonos-discovery",
"version": "1.5.0",
"version": "1.5.1",
"description": "A simple node library for managing your Sonos system",
"author": "Jimmy Shimizu <[email protected]>",
"repository": {
Expand Down
8 changes: 0 additions & 8 deletions test/unit/services/spotify.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,4 @@ describe('spotify', function () {
spotify = servicesContainer[9];
});

it('should load highres art', () => {

return spotify.tryGetHighResArt('x-sonos-spotify:spotify%3atrack%3a3WKg25vrbjJlkhsgl2W4p3?sid=9&flags=8224&sn=9')
.then((url) => {
expect(url).to.have.string('https://i.scdn.co/image/');
});
});

});

0 comments on commit 96e6c94

Please sign in to comment.