mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 22:14:26 +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;
|
if (!request && !url) return;
|
||||||
|
|
||||||
const selectedRequest = request || {
|
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!,
|
url: url!,
|
||||||
|
|
||||||
alwaysProxy: getSetting("save", "alwaysProxy"),
|
alwaysProxy: getSetting("save", "alwaysProxy"),
|
||||||
@ -50,6 +47,7 @@ export const savingHandler = async ({ url, request }: { url?: string, request?:
|
|||||||
audioFormat: getSetting("save", "audioFormat"),
|
audioFormat: getSetting("save", "audioFormat"),
|
||||||
tiktokFullAudio: getSetting("save", "tiktokFullAudio"),
|
tiktokFullAudio: getSetting("save", "tiktokFullAudio"),
|
||||||
youtubeDubLang: getSetting("save", "youtubeDubLang"),
|
youtubeDubLang: getSetting("save", "youtubeDubLang"),
|
||||||
|
youtubeBetterAudio: getSetting("save", "youtubeBetterAudio"),
|
||||||
|
|
||||||
youtubeVideoCodec: getSetting("save", "youtubeVideoCodec"),
|
youtubeVideoCodec: getSetting("save", "youtubeVideoCodec"),
|
||||||
videoQuality: getSetting("save", "videoQuality"),
|
videoQuality: getSetting("save", "videoQuality"),
|
||||||
|
@ -34,6 +34,7 @@ const defaultSettings: CobaltSettings = {
|
|||||||
youtubeVideoCodec: "h264",
|
youtubeVideoCodec: "h264",
|
||||||
youtubeDubLang: "original",
|
youtubeDubLang: "original",
|
||||||
youtubeHLS: false,
|
youtubeHLS: false,
|
||||||
|
youtubeBetterAudio: false,
|
||||||
},
|
},
|
||||||
privacy: {
|
privacy: {
|
||||||
disableAnalytics: false,
|
disableAnalytics: false,
|
||||||
|
@ -18,5 +18,6 @@ export type CobaltSettingsV5 = Omit<CobaltSettingsV4, 'schemaVersion' | 'advance
|
|||||||
localProcessing: boolean;
|
localProcessing: boolean;
|
||||||
allowH265: boolean;
|
allowH265: boolean;
|
||||||
convertGif: boolean;
|
convertGif: boolean;
|
||||||
|
youtubeBetterAudio: boolean;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user