Update i.mjh.nz.config.js

This commit is contained in:
Aleksandr Statciuk 2022-05-03 19:29:20 +03:00
parent 41e7140018
commit 0b815608f6

View file

@ -9,12 +9,17 @@ dayjs.extend(customParseFormat)
module.exports = {
site: 'i.mjh.nz',
request: {
cache: {
ttl: 6 * 60 * 60 * 1000 // 6h
}
},
url: function ({ channel }) {
const [source] = channel.site_id.split('#')
return `https://raw.githubusercontent.com/matthuisman/i.mjh.nz/master/${source}.xml`
},
parser: function ({ content, channel, date }) {
parser: function ({ content, channel, date, cached }) {
let programs = []
const items = parseItems(content, channel, date)
items.forEach(item => {