music: see if hls is faster for playback

This commit is contained in:
Cynthia Foxwell 2023-09-12 22:43:17 -06:00
parent eb78747d36
commit 58ae0b999d

View file

@ -230,7 +230,7 @@ async function enqueue({
length = info?.duration * 1000; length = info?.duration * 1000;
thumbnail = info?.thumbnailUrl; thumbnail = info?.thumbnailUrl;
media = info?.audioStreams?.sort((a, b) => a.bitrate - b.bitrate)?.[0]?.url; media = info?.hls;
} else if (type == "sc") { } else if (type == "sc") {
if (url?.startsWith("sc:")) if (url?.startsWith("sc:"))
url = url.replace(/^sc:/, "https://soundcloud.com/"); url = url.replace(/^sc:/, "https://soundcloud.com/");