|
2 | 2 |
|
3 | 3 | var libQ = require('kew'); |
4 | 4 | var fs = require('fs-extra'); |
5 | | -var config = new (require('v-conf'))(); |
6 | 5 | var superagent = require('superagent'); |
7 | 6 | var os = require('os'); |
8 | 7 | var websocket = require('ws'); |
9 | 8 | var path = require('path'); |
10 | 9 | var SpotifyWebApi = require('spotify-web-api-node'); |
11 | 10 | var io = require('socket.io-client'); |
12 | 11 | var exec = require('child_process').exec; |
13 | | -var execSync = require('child_process').execSync; |
14 | 12 | var NodeCache = require('node-cache'); |
15 | | -var os = require('os'); |
16 | 13 | var { fetchPagedData, rateLimitedCall } = require('./utils/extendedSpotifyApi'); |
17 | 14 |
|
18 | 15 | var configFileDestinationPath = '/tmp/go-librespot-config.yml'; |
19 | 16 | var credentialsPath = '/data/configuration/music_service/spop/spotifycredentials.json'; |
20 | 17 | var spotifyDaemonPort = '9879'; |
21 | 18 | 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; |
28 | 19 | var seekTimer; |
29 | 20 | var restartTimeout; |
30 | 21 | var wsConnectionStatus = 'started'; |
@@ -791,15 +782,10 @@ ControllerSpotify.prototype.isOauthLoginAlreadyConfiguredOnDaemon = function () |
791 | 782 | } |
792 | 783 | }; |
793 | 784 |
|
794 | | -ControllerSpotify.prototype.saveGoLibrespotSettings = function (data, avoidBroadcastUiConfig) { |
| 785 | +ControllerSpotify.prototype.saveGoLibrespotSettings = function (data) { |
795 | 786 | var self = this; |
796 | 787 | var defer = libQ.defer(); |
797 | 788 |
|
798 | | - var broadcastUiConfig = true; |
799 | | - if (avoidBroadcastUiConfig === true){ |
800 | | - broadcastUiConfig = false; |
801 | | - } |
802 | | - |
803 | 789 | if (data.bitrate !== undefined && data.bitrate.value !== undefined) { |
804 | 790 | self.config.set('bitrate_number', data.bitrate.value); |
805 | 791 | } |
|
0 commit comments