MCPcopy Create free account
hub / github.com/develop202/migu_video / getPlaybackData

Function getPlaybackData

utils/playback.js:7–12  ·  view source on GitHub ↗
(programId, timeout = 6000, githubAnd8)

Source from the content-addressed store, hash-verified

5
6
7async 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
14async function updatePlaybackDataByMigu(program, filePath, timeout = 6000, githubAnd8 = 0) {
15 // 今日节目数据

Callers 1

updatePlaybackDataByMiguFunction · 0.85

Calls 2

getDateStringFunction · 0.90
fetchUrlFunction · 0.90

Tested by

no test coverage detected