(programId, timeout = 6000, githubAnd8)
| 5 | |
| 6 | |
| 7 | async function getPlaybackData(programId, timeout = 6000, githubAnd8) { |
| 8 | const date = new Date(Date.now() + githubAnd8) |
| 9 | const today = getDateString(date) |
| 10 | const resp = await fetchUrl(`https://program-sc.miguvideo.com/live/v2/tv-programs-data/${programId}/${today}`, {}, timeout) |
| 11 | return resp.body?.program[0]?.content |
| 12 | } |
| 13 | |
| 14 | async function updatePlaybackDataByMigu(program, filePath, timeout = 6000, githubAnd8 = 0) { |
| 15 | // 今日节目数据 |
no test coverage detected