mirror of
https://github.com/iptv-org/epg
synced 2026-05-10 03:17:04 -04:00
Replaces icon with image
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = {
|
||||
programs.push({
|
||||
title: details.main_title,
|
||||
description: details.short_argument,
|
||||
icon: parseIcon(details),
|
||||
image: parseImage(details),
|
||||
actors: parseActors(details),
|
||||
rating: parseRating(details),
|
||||
date: details.year,
|
||||
@@ -87,7 +87,7 @@ function parseActors(details) {
|
||||
return details.actors.split(', ')
|
||||
}
|
||||
|
||||
function parseIcon(details) {
|
||||
function parseImage(details) {
|
||||
return details.image ? `https://img-ns.s3.amazonaws.com/grid_data/${details.image}` : null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user