mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
...
This commit is contained in:
1 parent
975eeca389
commit
69b158f7f6
1 file changed
+2
@@ -718,7 +718,9 @@ export class FluxerAudioBridge extends EventEmitter {
|
|||||||
const headers = url.includes("soundcloud.cloud")
|
const headers = url.includes("soundcloud.cloud")
|
||||||
? "Origin: https://soundcloud.com\r\nReferer: https://soundcloud.com/\r\n"
|
? "Origin: https://soundcloud.com\r\nReferer: https://soundcloud.com/\r\n"
|
||||||
: "Origin: https://www.youtube.com\r\nReferer: https://www.youtube.com/\r\n";
|
: "Origin: https://www.youtube.com\r\nReferer: https://www.youtube.com/\r\n";
|
||||||
|
const isLive = durationMs <= 0;
|
||||||
const ffmpegArgs = [
|
const ffmpegArgs = [
|
||||||
|
...(isLive ? [] : ["-re"]),
|
||||||
"-headers", headers,
|
"-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",
|
"-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",
|
"-reconnect", "1",
|
||||||
|
|||||||
Reference in new issue
Block a user