mirror of
https://github.com/iptv-org/epg
synced 2026-09-14 21:16:26 -04:00
Replaces icon with image
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = {
|
||||
title: item.title,
|
||||
category: item.category,
|
||||
description: parseDescription(item),
|
||||
icon: parseIcon(item),
|
||||
image: parseImage(item),
|
||||
start: parseStart(item),
|
||||
stop: parseStop(item)
|
||||
})
|
||||
@@ -60,7 +60,7 @@ function parseDescription(item) {
|
||||
return typeof item.desc === 'string' ? item.desc : null
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
return item.icon['@attributes'].src
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user