update
This commit is contained in:
@@ -37,7 +37,7 @@ app.get('/stream/:channelId', async (req, res) => {
|
|||||||
const { channelId } = req.params;
|
const { channelId } = req.params;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(`https://api.chzzk.naver.com/service/v1/channels/${channelId}/live-detail`, {
|
const response = await axios.get(`https://api.chzzk.naver.com/service/v3/channels/${channelId}/live-detail`, {
|
||||||
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'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user