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:
@@ -34,7 +34,7 @@ module.exports = {
|
||||
programs.push({
|
||||
title: parseTitle($item),
|
||||
sub_title: parseSubTitle($item),
|
||||
icon: parseIcon($item),
|
||||
image: parseImage($item),
|
||||
rating: parseRating($item),
|
||||
season: parseSeason($item),
|
||||
episode: parseEpisode($item),
|
||||
@@ -87,7 +87,7 @@ function parseEpisode($item) {
|
||||
return episode ? parseInt(episode) : null
|
||||
}
|
||||
|
||||
function parseIcon($item) {
|
||||
function parseImage($item) {
|
||||
return $item('.epg-event-thumbnail > img').attr('src')
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,8 @@ it('can parse response', () => {
|
||||
stop: '2022-11-07T13:30:00.000Z',
|
||||
title: 'The Equalizer',
|
||||
sub_title: 'Glory',
|
||||
icon: 'https://images1.resources.foxtel.com.au/store2/mount1/16/3/69e0v.jpg?maxheight=90&limit=91aa1c7a2c485aeeba0706941f79f111adb35830',
|
||||
image:
|
||||
'https://images1.resources.foxtel.com.au/store2/mount1/16/3/69e0v.jpg?maxheight=90&limit=91aa1c7a2c485aeeba0706941f79f111adb35830',
|
||||
rating: {
|
||||
system: 'ACB',
|
||||
value: 'M'
|
||||
|
||||
Reference in New Issue
Block a user