Skip to content

Commit 734894d

Browse files
committed
feat(spotify): add Accept-Language header to API requests
1 parent e93bfee commit 734894d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spotify/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ ControllerSpotify.prototype.spotifyApiConnect = function () {
987987
var d = new Date();
988988

989989
self.spotifyApi = new SpotifyWebApi();
990+
self.spotifyApi.setDefaultHeaders({'Accept-Language': self.commandRouter.sharedVars.get('language_code')});
990991

991992
// Retrieve an access token
992993
self.spotifyClientCredentialsGrant()

spotify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"kew": "^0.7.0",
3333
"node-cache": "^4.1.1",
3434
"socket.io-client": "2.1.1",
35-
"spotify-web-api-node": "^5.0.2",
35+
"spotify-web-api-node": "volumio/spotify-web-api-node#caf4921d71a3b67badfa25a1f2d5b36aa55e32a4",
3636
"superagent": "^8.1.2",
3737
"v-conf": "^1.4.2",
3838
"ws": "^8.13.0"

0 commit comments

Comments
 (0)