mirror of
https://github.com/imputnet/cobalt.git
synced 2026-08-04 14:52:28 +00:00
api/match: ignore subtitleLang if it's "none"
This commit is contained in:
parent
2396462c5c
commit
eb249a3eed
1 changed files with 4 additions and 1 deletions
|
|
@ -73,6 +73,9 @@ export default async function({ host, patternMatch, params, isSession, isApiKey
|
|||
youtubeHLS = false;
|
||||
}
|
||||
|
||||
const subtitleLang =
|
||||
params.subtitleLang !== "none" ? params.subtitleLang : undefined;
|
||||
|
||||
switch (host) {
|
||||
case "twitter":
|
||||
r = await twitter({
|
||||
|
|
@ -114,7 +117,7 @@ export default async function({ host, patternMatch, params, isSession, isApiKey
|
|||
isAudioMuted,
|
||||
dubLang: params.youtubeDubLang,
|
||||
youtubeHLS,
|
||||
subtitleLang: params.subtitleLang,
|
||||
subtitleLang,
|
||||
}
|
||||
|
||||
if (url.hostname === "music.youtube.com" || isAudioOnly) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue