Skip to content

Commit 1fecaf3

Browse files
committed
fix(spotify): clean up unused files and variables
1 parent f4f5d1d commit 1fecaf3

File tree

4 files changed

+1
-68
lines changed

4 files changed

+1
-68
lines changed

spotify/config.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

spotify/index.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,20 @@
22

33
var libQ = require('kew');
44
var fs = require('fs-extra');
5-
var config = new (require('v-conf'))();
65
var superagent = require('superagent');
76
var os = require('os');
87
var websocket = require('ws');
98
var path = require('path');
109
var SpotifyWebApi = require('spotify-web-api-node');
1110
var io = require('socket.io-client');
1211
var exec = require('child_process').exec;
13-
var execSync = require('child_process').execSync;
1412
var NodeCache = require('node-cache');
15-
var os = require('os');
1613
var { fetchPagedData, rateLimitedCall } = require('./utils/extendedSpotifyApi');
1714

1815
var configFileDestinationPath = '/tmp/go-librespot-config.yml';
1916
var credentialsPath = '/data/configuration/music_service/spop/spotifycredentials.json';
2017
var spotifyDaemonPort = '9879';
2118
var spotifyLocalApiEndpointBase = 'http://127.0.0.1:' + spotifyDaemonPort;
22-
var stateSocket = undefined;
23-
24-
var selectedBitrate;
25-
var loggedInUsername;
26-
var loggedInUserId;
27-
var userCountry;
2819
var seekTimer;
2920
var restartTimeout;
3021
var wsConnectionStatus = 'started';
@@ -791,15 +782,10 @@ ControllerSpotify.prototype.isOauthLoginAlreadyConfiguredOnDaemon = function ()
791782
}
792783
};
793784

794-
ControllerSpotify.prototype.saveGoLibrespotSettings = function (data, avoidBroadcastUiConfig) {
785+
ControllerSpotify.prototype.saveGoLibrespotSettings = function (data) {
795786
var self = this;
796787
var defer = libQ.defer();
797788

798-
var broadcastUiConfig = true;
799-
if (avoidBroadcastUiConfig === true){
800-
broadcastUiConfig = false;
801-
}
802-
803789
if (data.bitrate !== undefined && data.bitrate.value !== undefined) {
804790
self.config.set('bitrate_number', data.bitrate.value);
805791
}

spotify/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
},
99
"author": "Ashthespy, Balbuze, Skirkwood",
1010
"license": "ISC",
11-
"vollibrespot": {
12-
"version": "0.2.5"
13-
},
1411
"volumio_info": {
1512
"prettyName": "Spotify",
1613
"icon": "fa-spotify",

spotify/startconnect.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)