mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 02:16:40 -05:00
Replaces icon with image
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
@@ -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'
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user