mirror of
https://github.com/iptv-org/epg
synced 2025-12-19 03:46:41 -05:00
Update i.mjh.nz.config.js
This commit is contained in:
@@ -9,12 +9,17 @@ dayjs.extend(customParseFormat)
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'i.mjh.nz',
|
site: 'i.mjh.nz',
|
||||||
|
request: {
|
||||||
|
cache: {
|
||||||
|
ttl: 6 * 60 * 60 * 1000 // 6h
|
||||||
|
}
|
||||||
|
},
|
||||||
url: function ({ channel }) {
|
url: function ({ channel }) {
|
||||||
const [source] = channel.site_id.split('#')
|
const [source] = channel.site_id.split('#')
|
||||||
|
|
||||||
return `https://raw.githubusercontent.com/matthuisman/i.mjh.nz/master/${source}.xml`
|
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 = []
|
let programs = []
|
||||||
const items = parseItems(content, channel, date)
|
const items = parseItems(content, channel, date)
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
|
|||||||
Reference in New Issue
Block a user