mirror of
https://github.com/iptv-org/epg
synced 2026-04-18 08:39:23 -04:00
Update i.mjh.nz.config.js
This commit is contained in:
@@ -31,7 +31,8 @@ module.exports = {
|
||||
...item,
|
||||
title: getTitle(item),
|
||||
description: getDescription(item),
|
||||
categories: getCategories(item)
|
||||
categories: getCategories(item),
|
||||
icon: getIcon(item)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -160,6 +161,10 @@ function getCategories(item) {
|
||||
return item.category.map(c => c.value)
|
||||
}
|
||||
|
||||
function getIcon(item) {
|
||||
return item.icon && item.icon.length ? item.icon[0].src : null
|
||||
}
|
||||
|
||||
function parseItems(content, channel, date) {
|
||||
try {
|
||||
const curr_day = date
|
||||
|
||||
Reference in New Issue
Block a user