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

@ -33,7 +33,7 @@ module.exports = {
title: parseTitle($item),
sub_title: parseSubTitle($item),
categories: parseCategories($item),
icon: parseIcon($item),
image: parseImage($item),
start: parseStart($item, date),
stop: parseStop($item, date)
})
@ -43,7 +43,7 @@ module.exports = {
}
}
function parseIcon($item) {
function parseImage($item) {
return $item('.single-wrap').data('p')
}

View file

@ -49,7 +49,7 @@ it('can parse response', () => {
title: '問天',
sub_title: '第十四集',
categories: ['戲劇'],
icon: 'https://www.rthk.hk/assets/images/rthk/dtt31/thegreataerospace/10239_1920_s.jpg'
image: 'https://www.rthk.hk/assets/images/rthk/dtt31/thegreataerospace/10239_1920_s.jpg'
})
})
@ -68,7 +68,7 @@ it('can parse response in English', () => {
title: 'The Great Aerospace',
sub_title: 'Episode 14',
categories: ['戲劇'],
icon: 'https://www.rthk.hk/assets/images/rthk/dtt31/thegreataerospace/10239_1920_s.jpg'
image: 'https://www.rthk.hk/assets/images/rthk/dtt31/thegreataerospace/10239_1920_s.jpg'
})
})