mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Replaces icon with image
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = {
|
||||
title,
|
||||
sub_title,
|
||||
description: parseDescription($item),
|
||||
icon: parseIcon($item),
|
||||
image: parseImage($item),
|
||||
category: parseCategory($item),
|
||||
rating: parseRating($item),
|
||||
actors: parseActors($item),
|
||||
@@ -102,7 +102,7 @@ function parseDescription($item) {
|
||||
return $item('*').data('description')
|
||||
}
|
||||
|
||||
function parseIcon($item) {
|
||||
function parseImage($item) {
|
||||
const showpicture = $item('*').data('showpicture')
|
||||
const url = new URL(showpicture, 'https://cdn.tvpassport.com/image/show/960x540/')
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ it('can parse response', () => {
|
||||
title: 'Charlie Moore: No Offense',
|
||||
sub_title: 'Under the Influencer',
|
||||
category: ['Sports', 'Outdoors'],
|
||||
icon: 'https://cdn.tvpassport.com/image/show/960x540/69103.jpg',
|
||||
image: 'https://cdn.tvpassport.com/image/show/960x540/69103.jpg',
|
||||
rating: {
|
||||
system: 'MPA',
|
||||
value: 'TV-G'
|
||||
|
||||
Reference in New Issue
Block a user