mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Replaces icon with image
This commit is contained in:
parent
0eaff54a31
commit
bb6771f539
170 changed files with 428 additions and 351 deletions
|
@ -32,7 +32,7 @@ module.exports = {
|
|||
programs.push({
|
||||
title: parseTitle($item),
|
||||
description: parseDescription($item),
|
||||
icon: parseIcon($item),
|
||||
image: parseImage($item),
|
||||
start,
|
||||
stop
|
||||
})
|
||||
|
@ -68,7 +68,7 @@ function parseDescription($item) {
|
|||
return $item('.program__text').text().trim()
|
||||
}
|
||||
|
||||
function parseIcon($item) {
|
||||
function parseImage($item) {
|
||||
return $item('.program__thumbnail').data('src')
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ it('can parse response', () => {
|
|||
start: '2023-06-12T21:57:00.000Z',
|
||||
stop: '2023-06-12T22:58:00.000Z',
|
||||
title: 'Op1',
|
||||
icon: 'https://tvgidsassets.nl/v301/upload/o/carrousel/op1-451542641.jpg',
|
||||
image: 'https://tvgidsassets.nl/v301/upload/o/carrousel/op1-451542641.jpg',
|
||||
description: "Talkshow met wisselende presentatieduo's, live vanuit Amsterdam."
|
||||
})
|
||||
|
||||
|
@ -43,7 +43,7 @@ it('can parse response', () => {
|
|||
start: '2023-06-14T00:18:00.000Z',
|
||||
stop: '2023-06-14T00:48:00.000Z',
|
||||
title: 'NOS Journaal',
|
||||
icon: 'https://tvgidsassets.nl/v301/upload/n/carrousel/nos-journaal-452818771.jpg',
|
||||
image: 'https://tvgidsassets.nl/v301/upload/n/carrousel/nos-journaal-452818771.jpg',
|
||||
description:
|
||||
'Met het laatste nieuws, gebeurtenissen van nationaal en internationaal belang en de weersverwachting voor vandaag.'
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue