mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update update-api.js
This commit is contained in:
@@ -67,9 +67,9 @@ async function loadPrograms() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function saveToGuidesJson(guides = []) {
|
async function saveToGuidesJson(guides = []) {
|
||||||
const channelsPath = `${API_DIR}/guides.json`
|
const guidesPath = `${API_DIR}/guides.json`
|
||||||
logger.info(`Saving to "${channelsPath}"...`)
|
logger.info(`Saving to "${guidesPath}"...`)
|
||||||
await file.create(channelsPath, JSON.stringify(guides))
|
await file.create(guidesPath, JSON.stringify(guides))
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveToProgramsJson(programs = []) {
|
async function saveToProgramsJson(programs = []) {
|
||||||
|
|||||||
Reference in New Issue
Block a user