Skip to content

Commit

Permalink
fix: Enable HLS for YouTube
Browse files Browse the repository at this point in the history
  • Loading branch information
otomir23 committed Nov 10, 2024
1 parent 74a6f3e commit a7124a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/data/cobalt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a7124a2

Please sign in to comment.