From ab262f144ae14e3582409764a819ed81fc335d94 Mon Sep 17 00:00:00 2001 From: test Date: Tue, 9 Sep 2025 13:42:30 +0800 Subject: [PATCH] .. --- fetchURLByAndroidV2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fetchURLByAndroidV2.js b/fetchURLByAndroidV2.js index f742a30..1e5870b 100644 --- a/fetchURLByAndroidV2.js +++ b/fetchURLByAndroidV2.js @@ -23,7 +23,7 @@ async function fetchURLByAndroid() { const hours = date.getHours() let playbackFile = "" // 0点 - if (hours) { + if (!hours) { playbackFile = process.cwd() + '/playback.xml' writeFile(playbackFile, @@ -45,7 +45,7 @@ async function fetchURLByAndroid() { const data = datas[i].dataList // 写入节目 for (let j = 0; j < data.length; j++) { - if (hours) { + if (!hours) { const res = await updatePlaybackData(data[j], playbackFile) if (!res) { console.log(`playback.xml更新失败`) @@ -65,7 +65,7 @@ async function fetchURLByAndroid() { } } - if (hours) { + if (!hours) { appendFile(playbackFile, `\n`) } const end = Date.now()