From a7124a23c14553f65f6a139b33d49069033ab852 Mon Sep 17 00:00:00 2001 From: Damir Modyarov Date: Sun, 10 Nov 2024 18:38:30 +0300 Subject: [PATCH] fix: Enable HLS for YouTube --- src/core/data/cobalt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/data/cobalt.ts b/src/core/data/cobalt.ts index bdec9e0..2ef8fcd 100644 --- a/src/core/data/cobalt.ts +++ b/src/core/data/cobalt.ts @@ -76,7 +76,7 @@ export async function fetchMedia({ url, lang, apiBaseUrl, downloadMode = "auto", ...auth ? [["Authorization", auth] satisfies [string, string]] : [], ...lang ? [["Accept-Language", lang] satisfies [string, string]] : [], ], - body: JSON.stringify({ url, downloadMode, filenameStyle: "basic" }), + body: JSON.stringify({ url, downloadMode, filenameStyle: "basic", youtubeHLS: true }), }).catch(() => null) if (!res)