mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 14:04:25 +02:00
web/lib: add support for youtubeBetterAudio
This commit is contained in:
parent
335cd51eb5
commit
e3f999ace7
@ -34,9 +34,6 @@ export const savingHandler = async ({ url, request }: { url?: string, request?:
|
||||
if (!request && !url) return;
|
||||
|
||||
const selectedRequest = request || {
|
||||
// pointing typescript to the fact that
|
||||
// url is either present or not used at all,
|
||||
// aka in cases when request is present
|
||||
url: url!,
|
||||
|
||||
alwaysProxy: getSetting("save", "alwaysProxy"),
|
||||
@ -50,6 +47,7 @@ export const savingHandler = async ({ url, request }: { url?: string, request?:
|
||||
audioFormat: getSetting("save", "audioFormat"),
|
||||
tiktokFullAudio: getSetting("save", "tiktokFullAudio"),
|
||||
youtubeDubLang: getSetting("save", "youtubeDubLang"),
|
||||
youtubeBetterAudio: getSetting("save", "youtubeBetterAudio"),
|
||||
|
||||
youtubeVideoCodec: getSetting("save", "youtubeVideoCodec"),
|
||||
videoQuality: getSetting("save", "videoQuality"),
|
||||
|
@ -34,6 +34,7 @@ const defaultSettings: CobaltSettings = {
|
||||
youtubeVideoCodec: "h264",
|
||||
youtubeDubLang: "original",
|
||||
youtubeHLS: false,
|
||||
youtubeBetterAudio: false,
|
||||
},
|
||||
privacy: {
|
||||
disableAnalytics: false,
|
||||
|
@ -18,5 +18,6 @@ export type CobaltSettingsV5 = Omit<CobaltSettingsV4, 'schemaVersion' | 'advance
|
||||
localProcessing: boolean;
|
||||
allowH265: boolean;
|
||||
convertGif: boolean;
|
||||
youtubeBetterAudio: boolean;
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user