fix: remove connect timeout from ffmpeg arguments in music player and tests
This commit is contained in:
@@ -103,7 +103,6 @@ export function buildFfmpegArgs(source: string): string[] {
|
|||||||
"-user_agent",
|
"-user_agent",
|
||||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
|
||||||
);
|
);
|
||||||
args.push("-connect_timeout", "10");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
args.push(
|
args.push(
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ describe("createMusicPlayer", () => {
|
|||||||
"warning",
|
"warning",
|
||||||
"-user_agent",
|
"-user_agent",
|
||||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36",
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36",
|
||||||
"-connect_timeout",
|
|
||||||
"10",
|
|
||||||
"-i",
|
"-i",
|
||||||
"https://example.com/song.mp3",
|
"https://example.com/song.mp3",
|
||||||
"-vn",
|
"-vn",
|
||||||
|
|||||||
Reference in New Issue
Block a user