mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Replaces icon with image
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = {
|
||||
programs.push({
|
||||
title: item.title,
|
||||
description: item.description,
|
||||
icon: parseIcon(item),
|
||||
image: parseImage(item),
|
||||
start,
|
||||
stop
|
||||
})
|
||||
@@ -51,7 +51,7 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
return item.image.replace('$$IMAGESIZE$$', '480')
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,8 @@ it('can parse response', () => {
|
||||
title: 'Heimaleikfimi',
|
||||
description:
|
||||
'Góð ráð og æfingar sem tilvalið er að gera heima. Íris Rut Garðarsdóttir sjúkraþjálfari hefur umsjón með leikfiminni. e.',
|
||||
icon: 'https://d38kdhuogyllre.cloudfront.net/fit-in/480x/filters:quality(65)/hd_posters/91pvig-3p3hig.jpg'
|
||||
image:
|
||||
'https://d38kdhuogyllre.cloudfront.net/fit-in/480x/filters:quality(65)/hd_posters/91pvig-3p3hig.jpg'
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user