移文件
This commit is contained in:
8
app.js
8
app.js
@@ -3,7 +3,7 @@ import { getAndroidURL, getAndroidURL720p } from "./utils/androidURL.js";
|
||||
import { readFileSync } from "./utils/fileUtil.js";
|
||||
import { host, port, rateType, token, userId } from "./config.js";
|
||||
import { getDateTimeStr } from "./utils/time.js";
|
||||
import update from "./updateData.js";
|
||||
import update from "./utils/updateData.js";
|
||||
import { printBlue, printDebug, printGreen, printGrey, printMagenta, printRed, printYellow } from "./utils/colorOut.js";
|
||||
import { delay } from "./utils/fetchList.js";
|
||||
|
||||
@@ -295,7 +295,7 @@ server.listen(port, async () => {
|
||||
// 设置定时器,3小时更新一次
|
||||
setInterval(async () => {
|
||||
printBlue(`准备更新文件 ${getDateTimeStr(new Date())}`)
|
||||
hours += 3
|
||||
hours += 6
|
||||
try {
|
||||
await update(hours)
|
||||
} catch (error) {
|
||||
@@ -304,7 +304,7 @@ server.listen(port, async () => {
|
||||
}
|
||||
|
||||
printBlue(`当前已运行${hours}小时`)
|
||||
}, 3 * 60 * 60 * 1000);
|
||||
}, 6 * 60 * 60 * 1000);
|
||||
|
||||
try {
|
||||
// 初始化数据
|
||||
@@ -314,7 +314,7 @@ server.listen(port, async () => {
|
||||
printRed("更新失败")
|
||||
}
|
||||
|
||||
printGreen("每3小时更新一次")
|
||||
// printGreen("每3小时更新一次")
|
||||
|
||||
printGreen(`本地地址: http://localhost:${port}`)
|
||||
if (host != "") {
|
||||
|
||||
@@ -457,10 +457,6 @@ ${replace}/961335336
|
||||
${replace}/961334168
|
||||
#EXTINF:-1 tvg-id="奇才VS马刺" tvg-name="NBA 奇才VS马刺 全场回放(英文原声) 07:55" tvg-logo="https://img.cmvideo.cn/sports/uploadImages/2020/1/10/7f7fd4d8-7213-412b-8a19-02521a6ef852.png" group-title="体育-今天",NBA 奇才VS马刺 全场回放(英文原声) 07:55
|
||||
${replace}/961335427
|
||||
#EXTINF:-1 tvg-id="国王VS火箭" tvg-name="NBA 国王VS火箭 连睿 周鹏 王润陶 10:45" tvg-logo="https://img.cmvideo.cn/sports/uploadImages/2020/1/10/7f7fd4d8-7213-412b-8a19-02521a6ef852.png" group-title="体育-今天",NBA 国王VS火箭 连睿 周鹏 王润陶 10:45
|
||||
${replace}/961278727
|
||||
#EXTINF:-1 tvg-id="国王VS火箭" tvg-name="NBA 国王VS火箭 英文原声 10:55" tvg-logo="https://img.cmvideo.cn/sports/uploadImages/2020/1/10/7f7fd4d8-7213-412b-8a19-02521a6ef852.png" group-title="体育-今天",NBA 国王VS火箭 英文原声 10:55
|
||||
${replace}/961278636
|
||||
#EXTINF:-1 tvg-id="楚钦独守半区拼到底 因伤退赛盼康复" tvg-name="乒乓球经典赛事 楚钦独守半区拼到底 因伤退赛盼康复 经典赛事 19:00" tvg-logo="https://img.cmvideo.cn/publish/noms_wc/nomsworldcup/2025/11/27/6V1EMT10RN3F.png" group-title="体育-今天",乒乓球经典赛事 楚钦独守半区拼到底 因伤退赛盼康复 经典赛事 19:00
|
||||
${replace}/961246995
|
||||
#EXTINF:-1 tvg-id="江苏南钢VS浙江稠州银行" tvg-name="WCBA 江苏南钢VS浙江稠州银行 清流播出 19:25" tvg-logo="https://img.cmvideo.cn/sports/uploadImages/2023/10/20/100000000535106f44f7.png" group-title="体育-今天",WCBA 江苏南钢VS浙江稠州银行 清流播出 19:25
|
||||
|
||||
@@ -240,8 +240,6 @@ NBA 森林狼VS雄鹿 全场回放(邢晨) 07:55,${replace}/961333422
|
||||
NBA 森林狼VS雄鹿 全场回放(英文原声) 07:55,${replace}/961335336
|
||||
NBA 奇才VS马刺 全场回放(王晓晨) 07:55,${replace}/961334168
|
||||
NBA 奇才VS马刺 全场回放(英文原声) 07:55,${replace}/961335427
|
||||
NBA 国王VS火箭 连睿 周鹏 王润陶 10:45,${replace}/961278727
|
||||
NBA 国王VS火箭 英文原声 10:55,${replace}/961278636
|
||||
乒乓球经典赛事 楚钦独守半区拼到底 因伤退赛盼康复 经典赛事 19:00,${replace}/961246995
|
||||
WCBA 江苏南钢VS浙江稠州银行 清流播出 19:25,${replace}/961226181
|
||||
WCBA 北京首钢园VS山西竹叶青酒 清流播出 19:25,${replace}/961226202
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { dataList } from "./utils/fetchList.js"
|
||||
import { appendFile, appendFileSync, copyFileSync, renameFileSync, writeFile } from "./utils/fileUtil.js"
|
||||
import { updatePlaybackData } from "./utils/playback.js"
|
||||
import { /* refreshToken as mrefreshToken, */ host, token, userId } from "./config.js"
|
||||
import refreshToken from "./utils/refreshToken.js"
|
||||
import { printGreen, printRed, printYellow } from "./utils/colorOut.js"
|
||||
import { getDateString } from "./utils/time.js"
|
||||
import { fetchUrl } from "./utils/net.js"
|
||||
import { dataList } from "./fetchList.js"
|
||||
import { appendFile, appendFileSync, copyFileSync, renameFileSync, writeFile } from "./fileUtil.js"
|
||||
import { updatePlaybackData } from "./playback.js"
|
||||
import { /* refreshToken as mrefreshToken, */ host, token, userId } from "../config.js"
|
||||
import refreshToken from "./refreshToken.js"
|
||||
import { printGreen, printRed, printYellow } from "./colorOut.js"
|
||||
import { getDateString } from "./time.js"
|
||||
import { fetchUrl } from "./net.js"
|
||||
|
||||
/**
|
||||
* @param {Number} hours -更新小时数
|
||||
Reference in New Issue
Block a user