mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update i.mjh.nz.config.js
This commit is contained in:
parent
41e7140018
commit
0b815608f6
1 changed files with 6 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue