mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-18 07:44:50 +08:00
临时修复410问题
This commit is contained in:
2
app.js
2
app.js
@@ -220,6 +220,7 @@ server.listen(port, async () => {
|
|||||||
await update(hours)
|
await update(hours)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
printRed("更新失败")
|
printRed("更新失败")
|
||||||
|
console.log(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
printBlue(`\n当前已运行${hours}小时`)
|
printBlue(`\n当前已运行${hours}小时`)
|
||||||
@@ -230,6 +231,7 @@ server.listen(port, async () => {
|
|||||||
await update(hours)
|
await update(hours)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
printRed("更新失败")
|
printRed("更新失败")
|
||||||
|
console.log(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log()
|
console.log()
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ function delay(ms) {
|
|||||||
// 获取分类集合
|
// 获取分类集合
|
||||||
async function cateList() {
|
async function cateList() {
|
||||||
try {
|
try {
|
||||||
const resp = await axios.get("https://program-sc.miguvideo.com/live/v2/tv-data/a5f78af9d160418eb679a6dd0429c920")
|
const resp = await axios.get("https://program-sc.miguvideo.com/live/v2/tv-data/1ff892f2b5ab4a79be6e25b69d2f5d05")
|
||||||
let liveList = resp.data.body.liveList
|
let liveList = resp.data.body.liveList
|
||||||
// 热门内容重复
|
// 热门内容重复
|
||||||
liveList = liveList.filter((item) => {
|
liveList = liveList.filter((item) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user