music: body not func

This commit is contained in:
Cynthia Foxwell 2023-09-12 22:50:09 -06:00
parent d0a8e20bb3
commit 07b1b93a3e

View file

@ -232,7 +232,7 @@ async function enqueue({
media = await fetch(
info?.audioStreams?.sort((a, b) => a.bitrate - b.bitrate)?.[0]?.url
).then((res) => res.body());
).then((res) => res.body);
} else if (type == "sc") {
if (url?.startsWith("sc:"))
url = url.replace(/^sc:/, "https://soundcloud.com/");