mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 14:07:54 +08:00
fix: change kingkong to langlive (#4680)
This commit is contained in:
12
docs/live.md
12
docs/live.md
@@ -4,12 +4,6 @@ pageClass: routes
|
||||
|
||||
# 直播
|
||||
|
||||
## kingkong 直播
|
||||
|
||||
### 直播间开播
|
||||
|
||||
<Route author="LogicJake" example="/kingkong/room/2133342" path="/kingkong/room/:id" :paramsDesc="['直播间 id, 可在主播直播间页 URL 中找到']"/>
|
||||
|
||||
## SHOWROOM 直播
|
||||
|
||||
### 直播间开播
|
||||
@@ -50,6 +44,12 @@ pageClass: routes
|
||||
|
||||
<Route author="SettingDust xyqfer" example="/huya/live/edmunddzhang" path="/huya/live/:id" :paramsDesc="['直播间id或主播名(有一些id是名字,如上)']"/>
|
||||
|
||||
## 浪 Play(原 kingkong) 直播
|
||||
|
||||
### 直播间开播
|
||||
|
||||
<Route author="MittWillson" example="/langlive/room/666666" path="/langlive/room/:id" :paramsDesc="['直播间 id, 可在主播直播间页 URL 中找到']"/>
|
||||
|
||||
## 战旗直播
|
||||
|
||||
### 直播间开播
|
||||
|
||||
@@ -253,8 +253,9 @@ router.get('/douyu/room/:id', require('./routes/douyu/room'));
|
||||
// 虎牙
|
||||
router.get('/huya/live/:id', require('./routes/huya/live'));
|
||||
|
||||
// kingkong直播
|
||||
router.get('/kingkong/room/:id', require('./routes/kingkong/room'));
|
||||
// 浪Play(原kingkong)直播
|
||||
router.get('/kingkong/room/:id', require('./routes/langlive/room'));
|
||||
router.get('/langlive/room/:id', require('./routes/langlive/room'));
|
||||
|
||||
// SHOWROOM直播
|
||||
router.get('/showroom/room/:id', require('./routes/showroom/room'));
|
||||
|
||||
@@ -2,7 +2,7 @@ const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const id = ctx.params.id;
|
||||
const url = `https://www.kingkong.com.tw/${id}`;
|
||||
const url = `https://play.lang.live/${id}`;
|
||||
|
||||
const api = `https://api-kk.lv-play.com/webapi/v1/room/info?room_id=${id}`;
|
||||
const response = await got({
|
||||
@@ -24,7 +24,7 @@ module.exports = async (ctx) => {
|
||||
}
|
||||
|
||||
ctx.state.data = {
|
||||
title: `${name}的kingkong直播`,
|
||||
title: `${name}的浪Play直播`,
|
||||
link: url,
|
||||
item: item,
|
||||
allowEmpty: true,
|
||||
Reference in New Issue
Block a user