diff --git a/lib/helpers/request.js b/lib/helpers/request.js index f82fa8ce..590c4e82 100644 --- a/lib/helpers/request.js +++ b/lib/helpers/request.js @@ -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; } diff --git a/lib/services/spotify.js b/lib/services/spotify.js index 48488189..ee5ab3d6 100644 --- a/lib/services/spotify.js +++ b/lib/services/spotify.js @@ -36,7 +36,7 @@ function tryGetHighResArt(uri) { } module.exports = function (services) { - services[9] = { - tryGetHighResArt - }; + // services[9] = { + // tryGetHighResArt + // }; }; diff --git a/package.json b/package.json index 89c6b3f2..bf4f2110 100644 --- a/package.json +++ b/package.json @@ -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 ", "repository": { diff --git a/test/unit/services/spotify.js b/test/unit/services/spotify.js index ad726472..9dc5bdf1 100644 --- a/test/unit/services/spotify.js +++ b/test/unit/services/spotify.js @@ -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/'); - }); - }); - });