Updated deemix lib to v0.2.0

This commit is contained in:
RemixDev 2021-06-08 19:56:53 +02:00
parent 8218ceee25
commit e0ba538c0a
7 changed files with 15 additions and 15 deletions

View File

@ -21,7 +21,7 @@
"cookie-parser": "1.4.5", "cookie-parser": "1.4.5",
"debug": "2.6.9", "debug": "2.6.9",
"deemix": "^0.1.4", "deemix": "^0.2.0",
"deezer-js": "^1.0.0", "deezer-js": "^1.0.0",
"dotenv": "8.2.0", "dotenv": "8.2.0",
"express": "4.17.1", "express": "4.17.1",

4
server/dist/main.js vendored
View File

@ -50,13 +50,13 @@ exports.listener = {
} }
}; };
function getSettings() { function getSettings() {
return { settings, defaultSettings: exports.defaultSettings, spotifySettings: exports.plugins.spotify.getCredentials() }; return { settings, defaultSettings: exports.defaultSettings, spotifySettings: exports.plugins.spotify.getSettings() };
} }
exports.getSettings = getSettings; exports.getSettings = getSettings;
function saveSettings(newSettings, newSpotifySettings) { function saveSettings(newSettings, newSpotifySettings) {
deemix_1.default.settings.save(newSettings, exports.configFolder); deemix_1.default.settings.save(newSettings, exports.configFolder);
settings = newSettings; settings = newSettings;
exports.plugins.spotify.setCredentials(newSpotifySettings); exports.plugins.spotify.saveSettings(newSpotifySettings);
} }
exports.saveSettings = saveSettings; exports.saveSettings = saveSettings;
let queueOrder = []; let queueOrder = [];

View File

@ -15,7 +15,7 @@
"dependencies": { "dependencies": {
"cookie-parser": "1.4.5", "cookie-parser": "1.4.5",
"debug": "2.6.9", "debug": "2.6.9",
"deemix": "^0.1.4", "deemix": "^0.2.0",
"deezer-js": "^1.0.0", "deezer-js": "^1.0.0",
"dotenv": "8.2.0", "dotenv": "8.2.0",
"express": "4.17.1", "express": "4.17.1",

View File

@ -38,13 +38,13 @@ export const listener = {
} }
export function getSettings(): any { export function getSettings(): any {
return { settings, defaultSettings, spotifySettings: plugins.spotify.getCredentials() } return { settings, defaultSettings, spotifySettings: plugins.spotify.getSettings() }
} }
export function saveSettings(newSettings: any, newSpotifySettings: any) { export function saveSettings(newSettings: any, newSpotifySettings: any) {
deemix.settings.save(newSettings, configFolder) deemix.settings.save(newSettings, configFolder)
settings = newSettings settings = newSettings
plugins.spotify.setCredentials(newSpotifySettings) plugins.spotify.saveSettings(newSpotifySettings)
} }
let queueOrder: string[] = [] let queueOrder: string[] = []

View File

@ -1899,10 +1899,10 @@ decompress-response@^6.0.0:
dependencies: dependencies:
mimic-response "^3.1.0" mimic-response "^3.1.0"
deemix@^0.1.4: deemix@^0.2.0:
version "0.1.4" version "0.2.0"
resolved "https://registry.yarnpkg.com/deemix/-/deemix-0.1.4.tgz#ad43648895fd3bbe5583e7c558f786d6ce43598f" resolved "https://registry.yarnpkg.com/deemix/-/deemix-0.2.0.tgz#8bee06c65ed072b8d184e18e8a6cb2d51be9a023"
integrity sha512-7v6zfcx+16g3Ii2yvntJM+MvTYPpWyabzHxRN0u8mUarc/P7o8hPrSVeofAZOhF6iSN0RBKeSjIoN5LTQsobSA== integrity sha512-Co+q0RMh6rrF1e2J+KoLOXjil5hucd9Yj13diief6mwNyXrLx9eVEmiAACSPMojbEtWFgqdjpgSpDgzi44ol5g==
dependencies: dependencies:
async "^3.2.0" async "^3.2.0"
browser-id3-writer "^4.4.0" browser-id3-writer "^4.4.0"

2
webui

@ -1 +1 @@
Subproject commit 268025fa2fba73f382b1b7a2eeb6201cae38bf08 Subproject commit fc899376e6915677edb020c6ecc7c6f6952d053a

View File

@ -813,10 +813,10 @@ decompress-response@^6.0.0:
dependencies: dependencies:
mimic-response "^3.1.0" mimic-response "^3.1.0"
deemix@^0.1.4: deemix@^0.2.0:
version "0.1.4" version "0.2.0"
resolved "https://registry.yarnpkg.com/deemix/-/deemix-0.1.4.tgz#ad43648895fd3bbe5583e7c558f786d6ce43598f" resolved "https://registry.yarnpkg.com/deemix/-/deemix-0.2.0.tgz#8bee06c65ed072b8d184e18e8a6cb2d51be9a023"
integrity sha512-7v6zfcx+16g3Ii2yvntJM+MvTYPpWyabzHxRN0u8mUarc/P7o8hPrSVeofAZOhF6iSN0RBKeSjIoN5LTQsobSA== integrity sha512-Co+q0RMh6rrF1e2J+KoLOXjil5hucd9Yj13diief6mwNyXrLx9eVEmiAACSPMojbEtWFgqdjpgSpDgzi44ol5g==
dependencies: dependencies:
async "^3.2.0" async "^3.2.0"
browser-id3-writer "^4.4.0" browser-id3-writer "^4.4.0"