Update www3.nhk.or.jp.config.js

This commit is contained in:
freearhey
2025-10-22 06:01:03 +03:00
parent a8252e060c
commit 892fcfe6e6

View File

@@ -2,13 +2,15 @@ const dayjs = require('dayjs')
module.exports = {
site: 'www3.nhk.or.jp',
output: 'www3.nhk.or.jp.guide.xml',
days: 5,
lang: 'en',
delay: 5000,
url: function ({ date }) {
return `https://masterpl.hls.nhkworld.jp/epg/w/${date.toISOString().slice(0, 10).replace(/-/g, '')}.json`
return `https://masterpl.hls.nhkworld.jp/epg/w/${date
.toISOString()
.slice(0, 10)
.replace(/-/g, '')}.json`
},
request: {
@@ -51,4 +53,4 @@ function parseItems(content) {
} else {
return []
}
}
}