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
af932a972c
commit
51bbe74046
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue