mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-29 07:27:22 +08:00
@@ -4,18 +4,19 @@ module.exports = async (ctx) => {
|
||||
const id = ctx.params.id;
|
||||
const url = `https://play.lang.live/${id}`;
|
||||
|
||||
const api = `https://api-kk.lv-play.com/webapi/v1/room/info?room_id=${id}`;
|
||||
const api = `https://game-api.lang.live/webapi/v1/room/info?room_id=${id}`;
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: api,
|
||||
});
|
||||
|
||||
let item;
|
||||
const name = response.data.data.live_info.nickname;
|
||||
let item = [];
|
||||
let name = '';
|
||||
if (response.data.data.live_info.live_status === 1) {
|
||||
name = response.data.data.live_info.nickname;
|
||||
item = [
|
||||
{
|
||||
title: name + '开播了',
|
||||
title: response.data.data.live_info.nickname + '开播了',
|
||||
link: url,
|
||||
guid: response.data.data.live_info.live_id,
|
||||
description: response.data.data.live_info.describe,
|
||||
|
||||
Reference in New Issue
Block a user