This commit is contained in:
NoLogicAlan committed 2026-11-02 02:52:02 +03:00
1 parent 69b158f7f6
commit 71bd628549
1 file changed
+1 -2
+1 -2
View File
@@ -718,9 +718,8 @@ export class FluxerAudioBridge extends EventEmitter {
const headers = url.includes("soundcloud.cloud")
? "Origin: https://soundcloud.com\r\nReferer: https://soundcloud.com/\r\n"
: "Origin: https://www.youtube.com\r\nReferer: https://www.youtube.com/\r\n";
const isLive = durationMs <= 0;
const ffmpegArgs = [
...(isLive ? [] : ["-re"]),
"-re",
"-headers", headers,
"-user_agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"-reconnect", "1",