Replaces icon with image

This commit is contained in:
freearhey 2024-06-24 16:49:35 +03:00
parent 0eaff54a31
commit bb6771f539
170 changed files with 428 additions and 351 deletions

View file

@ -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')
}

View file

@ -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.'
})