mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-17 15:25:03 +08:00
..
This commit is contained in:
@@ -23,7 +23,7 @@ async function fetchURLByAndroid() {
|
|||||||
const hours = date.getHours()
|
const hours = date.getHours()
|
||||||
let playbackFile = ""
|
let playbackFile = ""
|
||||||
// 0点
|
// 0点
|
||||||
if (hours) {
|
if (!hours) {
|
||||||
|
|
||||||
playbackFile = process.cwd() + '/playback.xml'
|
playbackFile = process.cwd() + '/playback.xml'
|
||||||
writeFile(playbackFile,
|
writeFile(playbackFile,
|
||||||
@@ -45,7 +45,7 @@ async function fetchURLByAndroid() {
|
|||||||
const data = datas[i].dataList
|
const data = datas[i].dataList
|
||||||
// 写入节目
|
// 写入节目
|
||||||
for (let j = 0; j < data.length; j++) {
|
for (let j = 0; j < data.length; j++) {
|
||||||
if (hours) {
|
if (!hours) {
|
||||||
const res = await updatePlaybackData(data[j], playbackFile)
|
const res = await updatePlaybackData(data[j], playbackFile)
|
||||||
if (!res) {
|
if (!res) {
|
||||||
console.log(`playback.xml更新失败`)
|
console.log(`playback.xml更新失败`)
|
||||||
@@ -65,7 +65,7 @@ async function fetchURLByAndroid() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hours) {
|
if (!hours) {
|
||||||
appendFile(playbackFile, `</tv>\n`)
|
appendFile(playbackFile, `</tv>\n`)
|
||||||
}
|
}
|
||||||
const end = Date.now()
|
const end = Date.now()
|
||||||
|
|||||||
Reference in New Issue
Block a user