api: initial subtitles functionality with youtube support

this took way more effort than i expected it to do, mostly because of youtube locking everything down to shit

local processing doesn't function with subtitles yet, wasm needs to be updated
This commit is contained in:
wukko
2025-06-18 20:19:19 +06:00
parent 967552b26b
commit 259a0758f1
5 changed files with 149 additions and 38 deletions

View File

@@ -114,6 +114,7 @@ export default async function({ host, patternMatch, params, isSession, isApiKey
isAudioMuted,
dubLang: params.youtubeDubLang,
youtubeHLS,
subtitleLang: params.subtitleLang,
}
if (url.hostname === "music.youtube.com" || isAudioOnly) {