mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Replaces icon with image
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = {
|
||||
actors: item.program.actor,
|
||||
start: parseStart(item),
|
||||
stop: parseStop(item),
|
||||
icon: parseIcon(item)
|
||||
image: parseImage(item)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -63,7 +63,7 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
return item.program.image.length ? `https://image.tving.com${item.program.image[0].url}` : null
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ it('can parse response', () => {
|
||||
expect(results[0]).toMatchObject({
|
||||
title: '외계+인 1부',
|
||||
description: '외계+인 1부',
|
||||
icon: 'https://image.tving.com/upload/cms/caip/CAIP0200/P001661154.jpg',
|
||||
image: 'https://image.tving.com/upload/cms/caip/CAIP0200/P001661154.jpg',
|
||||
date: 2022,
|
||||
categories: [],
|
||||
directors: ['최동훈'],
|
||||
|
||||
Reference in New Issue
Block a user