mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 22:14:26 +02:00

webkit is really weird with wasm ram management, so we disable local processing by default there. the user can still enable it manually in settings, but then we're not at fault by allowing potentially broken behavior by default
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
import { device } from "$lib/device";
|
|
import { defaultLocale } from "$lib/i18n/translations";
|
|
import type { CobaltSettings } from "$lib/types/settings";
|
|
|
|
const defaultSettings: CobaltSettings = {
|
|
schemaVersion: 5,
|
|
advanced: {
|
|
debug: false,
|
|
useWebCodecs: false,
|
|
},
|
|
appearance: {
|
|
theme: "auto",
|
|
language: defaultLocale,
|
|
autoLanguage: true,
|
|
},
|
|
accessibility: {
|
|
reduceMotion: false,
|
|
reduceTransparency: false,
|
|
disableHaptics: false,
|
|
dontAutoOpenQueue: false,
|
|
},
|
|
save: {
|
|
alwaysProxy: false,
|
|
localProcessing: device.supports.defaultLocalProcessing || false,
|
|
audioBitrate: "128",
|
|
audioFormat: "mp3",
|
|
disableMetadata: false,
|
|
downloadMode: "auto",
|
|
filenameStyle: "classic",
|
|
savingMethod: "download",
|
|
allowH265: false,
|
|
tiktokFullAudio: false,
|
|
convertGif: true,
|
|
videoQuality: "1080",
|
|
youtubeVideoCodec: "h264",
|
|
youtubeDubLang: "original",
|
|
youtubeHLS: false,
|
|
youtubeBetterAudio: false,
|
|
},
|
|
privacy: {
|
|
disableAnalytics: false,
|
|
},
|
|
processing: {
|
|
customInstanceURL: "",
|
|
customApiKey: "",
|
|
enableCustomInstances: false,
|
|
enableCustomApiKey: false,
|
|
seenCustomWarning: false,
|
|
}
|
|
}
|
|
|
|
export default defaultSettings;
|