mirror of
https://github.com/iptv-org/epg
synced 2026-09-11 14:26:51 -04:00
Replaces icon with image
This commit is contained in:
@@ -50,7 +50,7 @@ module.exports = {
|
||||
programs.push({
|
||||
title: parseTitle($item),
|
||||
description: parseDescription($item),
|
||||
icon: parseIcon($item),
|
||||
image: parseImage($item),
|
||||
start,
|
||||
stop
|
||||
})
|
||||
@@ -92,7 +92,7 @@ function parseStart($item, date) {
|
||||
}).toUTC()
|
||||
}
|
||||
|
||||
function parseIcon($item) {
|
||||
function parseImage($item) {
|
||||
const imgSrc = $item('img').attr('src')
|
||||
|
||||
return imgSrc ? `https:${imgSrc}` : null
|
||||
|
||||
Reference in New Issue
Block a user