Revert "moved some objects in backend"
This reverts commit 2fca495a5d
.
aaa
This commit is contained in:
parent
328f35e485
commit
7f73fc1ff2
3 changed files with 77 additions and 77 deletions
75
index.js
75
index.js
|
@ -9,81 +9,6 @@ ElectronSentry.init({dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.inge
|
||||||
app.commandLine.appendSwitch('enable-unsafe-webgpu');
|
app.commandLine.appendSwitch('enable-unsafe-webgpu');
|
||||||
|
|
||||||
|
|
||||||
const configSchema = {
|
|
||||||
"general": {
|
|
||||||
"close_behavior": {
|
|
||||||
type: "number",
|
|
||||||
default: 0
|
|
||||||
},
|
|
||||||
"startup_behavior": {
|
|
||||||
type: "number",
|
|
||||||
default: 0
|
|
||||||
},
|
|
||||||
"discord_rpc": {
|
|
||||||
type: "number",
|
|
||||||
default: 1
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"behavior": {
|
|
||||||
"hw_acceleration": {
|
|
||||||
type: "number",
|
|
||||||
default: 0 // 0 = default, 1 = webgpu, 2 = gpu disabled
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"audio": {
|
|
||||||
"quality": {
|
|
||||||
type: "string",
|
|
||||||
default: "extreme",
|
|
||||||
},
|
|
||||||
"seamless_audio": {
|
|
||||||
type: "boolean",
|
|
||||||
default: true,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"visual": {
|
|
||||||
"theme": {
|
|
||||||
type: "string",
|
|
||||||
default: ""
|
|
||||||
},
|
|
||||||
"scrollbars": {
|
|
||||||
type: "number",
|
|
||||||
default: 0
|
|
||||||
},
|
|
||||||
"refresh_rate": {
|
|
||||||
type: "number",
|
|
||||||
default: 0
|
|
||||||
},
|
|
||||||
"animated_artwork": {
|
|
||||||
type: "number",
|
|
||||||
default: 0 // 0 = always, 1 = limited, 2 = never
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lyrics": {
|
|
||||||
"enable_mxm": {
|
|
||||||
type: "boolean",
|
|
||||||
default: false
|
|
||||||
},
|
|
||||||
"mxm_language": {
|
|
||||||
type: "string",
|
|
||||||
default: "en"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lastfm": {
|
|
||||||
"enabled": {
|
|
||||||
type: "boolean",
|
|
||||||
default: false
|
|
||||||
},
|
|
||||||
"scrobble_after": {
|
|
||||||
type: "number",
|
|
||||||
default: 30
|
|
||||||
},
|
|
||||||
"auth_token": {
|
|
||||||
type: "string",
|
|
||||||
default: ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creating the Application Window and Calling all the Functions
|
// Creating the Application Window and Calling all the Functions
|
||||||
function CreateWindow() {
|
function CreateWindow() {
|
||||||
if (app.isQuiting) { app.quit(); return; }
|
if (app.isQuiting) { app.quit(); return; }
|
||||||
|
|
|
@ -6,8 +6,84 @@ const path = require("path");
|
||||||
const windowStateKeeper = require("electron-window-state");
|
const windowStateKeeper = require("electron-window-state");
|
||||||
const os = require('os');
|
const os = require('os');
|
||||||
const Store = require("electron-store");
|
const Store = require("electron-store");
|
||||||
|
const store = new Store();
|
||||||
const yt = require('youtube-search-without-api-key');
|
const yt = require('youtube-search-without-api-key');
|
||||||
|
|
||||||
|
const schema = {
|
||||||
|
"general": {
|
||||||
|
"close_behavior": {
|
||||||
|
type: "number",
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
"startup_behavior": {
|
||||||
|
type: "number",
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
"discord_rpc": {
|
||||||
|
type: "number",
|
||||||
|
default: 1
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"behavior": {
|
||||||
|
"hw_acceleration": {
|
||||||
|
type: "number",
|
||||||
|
default: 0 // 0 = default, 1 = webgpu, 2 = gpu disabled
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"audio": {
|
||||||
|
"quality": {
|
||||||
|
type: "string",
|
||||||
|
default: "extreme",
|
||||||
|
},
|
||||||
|
"seamless_audio": {
|
||||||
|
type: "boolean",
|
||||||
|
default: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"visual": {
|
||||||
|
"theme": {
|
||||||
|
type: "string",
|
||||||
|
default: ""
|
||||||
|
},
|
||||||
|
"scrollbars": {
|
||||||
|
type: "number",
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
"refresh_rate": {
|
||||||
|
type: "number",
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
"animated_artwork": {
|
||||||
|
type: "number",
|
||||||
|
default: 0 // 0 = always, 1 = limited, 2 = never
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lyrics": {
|
||||||
|
"enable_mxm": {
|
||||||
|
type: "boolean",
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
"mxm_language": {
|
||||||
|
type: "string",
|
||||||
|
default: "en"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lastfm": {
|
||||||
|
"enabled": {
|
||||||
|
type: "boolean",
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
"scrobble_after": {
|
||||||
|
type: "number",
|
||||||
|
default: 30
|
||||||
|
},
|
||||||
|
"auth_token": {
|
||||||
|
type: "string",
|
||||||
|
default: ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Analytics for debugging.
|
// Analytics for debugging.
|
||||||
const ElectronSentry = require("@sentry/electron");
|
const ElectronSentry = require("@sentry/electron");
|
||||||
ElectronSentry.init({dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.ingest.sentry.io/6112214"});
|
ElectronSentry.init({dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.ingest.sentry.io/6112214"});
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
enableCEA708Captions: false,
|
enableCEA708Captions: false,
|
||||||
emeEnabled: false,
|
emeEnabled: false,
|
||||||
abrEwmaDefaultEstimate: 10000,
|
abrEwmaDefaultEstimate: 10000,
|
||||||
testBandwidth: false,
|
testBandwidth: false
|
||||||
capLevelToPlayerSize: true
|
|
||||||
};
|
};
|
||||||
if (this.hls) {
|
if (this.hls) {
|
||||||
console.log('detached');
|
console.log('detached');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue