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

@@ -35,7 +35,7 @@ module.exports = {
programs.push({
title: item.Title,
description: parseDescription(details),
icon: parseIcon(details),
image: parseImage(details),
category: parseCategory(details),
start: parseTime(item.StartTime, channel),
stop: parseTime(item.EndTime, channel)
@@ -178,7 +178,7 @@ function parseDescription(details) {
return details ? details.Synopsis : null
}
function parseIcon(details) {
function parseImage(details) {
return details ? details.ThumbnailUri : null
}

View File

@@ -60,7 +60,8 @@ it('can parse response for ZA', async () => {
title: 'UFC FN HL: Nzechukwu v Cutelaba',
description:
"'UFC Fight Night Highlights - Heavyweight Bout: Kennedy Nzechukwu vs Ion Cutelaba'. From The UFC APEX Center - Las Vegas, USA.",
icon: 'https://03mcdecdnimagerepository.blob.core.windows.net/epguideimage/img/271546_UFC Fight Night.png',
image:
'https://03mcdecdnimagerepository.blob.core.windows.net/epguideimage/img/271546_UFC Fight Night.png',
category: ['All Sport', 'Mixed Martial Arts']
})
})
@@ -91,7 +92,8 @@ it('can parse response for NG', async () => {
title: 'UFC FN HL: Nzechukwu v Cutelaba',
description:
"'UFC Fight Night Highlights - Heavyweight Bout: Kennedy Nzechukwu vs Ion Cutelaba'. From The UFC APEX Center - Las Vegas, USA.",
icon: 'https://03mcdecdnimagerepository.blob.core.windows.net/epguideimage/img/271546_UFC Fight Night.png',
image:
'https://03mcdecdnimagerepository.blob.core.windows.net/epguideimage/img/271546_UFC Fight Night.png',
category: ['All Sport', 'Mixed Martial Arts']
})
})