Skip to content

Commit c2dd61d

Browse files
committed
feat: ytdl-core proxy 추가
1 parent 31fdf50 commit c2dd61d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/services/videoService.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import { MESSAGES } from "../config/constants.js";
77
import { bucket } from "../config/gcs.js";
88

99
const getYoutubeVideo = async (youtubeUrl) => {
10-
const videoStream = ytdl(youtubeUrl, { quality: "highestvideo" });
10+
const agent = ytdl.createProxyAgent({
11+
uri: "http://152.26.229.66:9443",
12+
});
13+
14+
const videoStream = ytdl(youtubeUrl, { quality: "highestvideo", agent });
1115

1216
return videoStream;
1317
};

0 commit comments

Comments
 (0)