mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-27 05:28:49 +01:00
web/settings: move alwaysProxy & localProcessing, add useWebCodecs
This commit is contained in:
parent
540aee6194
commit
b463ec7a7d
3 changed files with 14 additions and 10 deletions
|
@ -49,7 +49,13 @@ const request = async (url: string) => {
|
||||||
const request = {
|
const request = {
|
||||||
url,
|
url,
|
||||||
|
|
||||||
|
alwaysProxy: getSetting("save", "alwaysProxy"),
|
||||||
|
localProcessing: getSetting("save", "localProcessing"),
|
||||||
downloadMode: getSetting("save", "downloadMode"),
|
downloadMode: getSetting("save", "downloadMode"),
|
||||||
|
|
||||||
|
filenameStyle: getSetting("save", "filenameStyle"),
|
||||||
|
disableMetadata: getSetting("save", "disableMetadata"),
|
||||||
|
|
||||||
audioBitrate: getSetting("save", "audioBitrate"),
|
audioBitrate: getSetting("save", "audioBitrate"),
|
||||||
audioFormat: getSetting("save", "audioFormat"),
|
audioFormat: getSetting("save", "audioFormat"),
|
||||||
tiktokFullAudio: getSetting("save", "tiktokFullAudio"),
|
tiktokFullAudio: getSetting("save", "tiktokFullAudio"),
|
||||||
|
@ -59,14 +65,8 @@ const request = async (url: string) => {
|
||||||
videoQuality: getSetting("save", "videoQuality"),
|
videoQuality: getSetting("save", "videoQuality"),
|
||||||
youtubeHLS: getSetting("save", "youtubeHLS"),
|
youtubeHLS: getSetting("save", "youtubeHLS"),
|
||||||
|
|
||||||
filenameStyle: getSetting("save", "filenameStyle"),
|
|
||||||
disableMetadata: getSetting("save", "disableMetadata"),
|
|
||||||
|
|
||||||
convertGif: getSetting("save", "convertGif"),
|
convertGif: getSetting("save", "convertGif"),
|
||||||
allowH265: getSetting("save", "allowH265"),
|
allowH265: getSetting("save", "allowH265"),
|
||||||
|
|
||||||
alwaysProxy: getSetting("privacy", "alwaysProxy"),
|
|
||||||
localProcessing: getSetting("advanced", "localProcessing"),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await getServerInfo();
|
await getServerInfo();
|
||||||
|
|
|
@ -5,7 +5,7 @@ const defaultSettings: CobaltSettings = {
|
||||||
schemaVersion: 5,
|
schemaVersion: 5,
|
||||||
advanced: {
|
advanced: {
|
||||||
debug: false,
|
debug: false,
|
||||||
localProcessing: false,
|
useWebCodecs: false,
|
||||||
},
|
},
|
||||||
appearance: {
|
appearance: {
|
||||||
theme: "auto",
|
theme: "auto",
|
||||||
|
@ -15,6 +15,8 @@ const defaultSettings: CobaltSettings = {
|
||||||
reduceTransparency: false,
|
reduceTransparency: false,
|
||||||
},
|
},
|
||||||
save: {
|
save: {
|
||||||
|
alwaysProxy: false,
|
||||||
|
localProcessing: false,
|
||||||
audioBitrate: "128",
|
audioBitrate: "128",
|
||||||
audioFormat: "mp3",
|
audioFormat: "mp3",
|
||||||
disableMetadata: false,
|
disableMetadata: false,
|
||||||
|
@ -30,7 +32,6 @@ const defaultSettings: CobaltSettings = {
|
||||||
youtubeHLS: false,
|
youtubeHLS: false,
|
||||||
},
|
},
|
||||||
privacy: {
|
privacy: {
|
||||||
alwaysProxy: false,
|
|
||||||
disableAnalytics: false,
|
disableAnalytics: false,
|
||||||
},
|
},
|
||||||
processing: {
|
processing: {
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
import { type CobaltSettingsV4 } from "$lib/types/settings/v4";
|
import { type CobaltSettingsV4 } from "$lib/types/settings/v4";
|
||||||
|
|
||||||
export type CobaltSettingsV5 = Omit<CobaltSettingsV4, 'schemaVersion' | 'advanced' | 'save'> & {
|
export type CobaltSettingsV5 = Omit<CobaltSettingsV4, 'schemaVersion' | 'advanced' | 'save' | 'privacy'> & {
|
||||||
schemaVersion: 5,
|
schemaVersion: 5,
|
||||||
advanced: CobaltSettingsV4['advanced'] & {
|
advanced: CobaltSettingsV4['advanced'] & {
|
||||||
localProcessing: boolean;
|
useWebCodecs: boolean;
|
||||||
},
|
},
|
||||||
|
privacy: Omit<CobaltSettingsV4['privacy'], 'alwaysProxy'>,
|
||||||
save: Omit<CobaltSettingsV4['save'], 'tiktokH265' | 'twitterGif'> & {
|
save: Omit<CobaltSettingsV4['save'], 'tiktokH265' | 'twitterGif'> & {
|
||||||
|
alwaysProxy: boolean;
|
||||||
|
localProcessing: boolean;
|
||||||
allowH265: boolean;
|
allowH265: boolean;
|
||||||
convertGif: boolean;
|
convertGif: boolean;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue