From e0f0abc1dd43156d17fd39e24ae35e990ceff58d Mon Sep 17 00:00:00 2001 From: develop202 Date: Mon, 22 Dec 2025 14:10:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 8 ++++---- interface.txt | 4 ---- interfaceTXT.txt | 2 -- updateData.js => utils/updateData.js | 16 ++++++++-------- 4 files changed, 12 insertions(+), 18 deletions(-) rename updateData.js => utils/updateData.js (94%) diff --git a/app.js b/app.js index bf32d81..093fe13 100644 --- a/app.js +++ b/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 != "") { diff --git a/interface.txt b/interface.txt index 99d348e..9351661 100644 --- a/interface.txt +++ b/interface.txt @@ -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 diff --git a/interfaceTXT.txt b/interfaceTXT.txt index e201c01..ecbd7a5 100644 --- a/interfaceTXT.txt +++ b/interfaceTXT.txt @@ -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 diff --git a/updateData.js b/utils/updateData.js similarity index 94% rename from updateData.js rename to utils/updateData.js index 47397fd..9c762ac 100644 --- a/updateData.js +++ b/utils/updateData.js @@ -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 -更新小时数