mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Replaces icon with image
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = {
|
||||
programs.push({
|
||||
title: parseTitle($item),
|
||||
description: parseDescription($item),
|
||||
icon: parseIcon($item),
|
||||
image: parseImage($item),
|
||||
start,
|
||||
stop
|
||||
})
|
||||
@@ -59,7 +59,7 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
function parseIcon($item) {
|
||||
function parseImage($item) {
|
||||
const imgSrc = $item('div.smartpe_screenshot > img').attr('src')
|
||||
|
||||
return imgSrc ? `https:${imgSrc}` : null
|
||||
|
||||
Reference in New Issue
Block a user