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

@ -24,7 +24,7 @@ module.exports = {
title: item.title,
description: item.commentary,
category: parseCategory(item),
icon: parseIcon(item),
image: parseImage(item),
start: parseStart(item),
stop: parseStop(item)
})
@ -70,7 +70,7 @@ module.exports = {
}
}
function parseIcon(item) {
function parseImage(item) {
return item.imgPath ? `https://tvguide.myjcom.jp${item.imgPath}` : null
}

View file

@ -33,7 +33,8 @@ it('can parse response', () => {
title: '[5.1]フードロア:タマリンド',
description:
'HBO(R)アジア製作。日本の齊藤工などアジアの監督が、各国の食をテーマに描いたアンソロジーシリーズ。(全8話)(19年 シンガポール 56分)',
icon: 'https://tvguide.myjcom.jp/monomedia/si/2022/20220114/7305523/image/7743d17b655b8d2274ca58b74f2f095c.jpg',
image:
'https://tvguide.myjcom.jp/monomedia/si/2022/20220114/7305523/image/7743d17b655b8d2274ca58b74f2f095c.jpg',
category: 'ドラマ'
}
])