mirror of
https://github.com/iptv-org/epg
synced 2026-04-30 06:26:59 -04:00
Replaces icon with image
This commit is contained in:
@@ -45,7 +45,7 @@ module.exports = {
|
||||
programs.push({
|
||||
title: parseTitle($item),
|
||||
category: parseCategory($item),
|
||||
icon: details.icon,
|
||||
image: details.image,
|
||||
description: details.description,
|
||||
directors: details.directors,
|
||||
actors: details.actors,
|
||||
@@ -95,7 +95,7 @@ async function loadProgramDetails($item) {
|
||||
const $ = cheerio.load(content)
|
||||
|
||||
return Promise.resolve({
|
||||
icon: parseIcon($),
|
||||
image: parseImage($),
|
||||
actors: parseActors($),
|
||||
directors: parseDirectors($),
|
||||
description: parseDescription($)
|
||||
@@ -132,7 +132,7 @@ function parseDescription($) {
|
||||
return $('#Sinopsis > div').text().trim()
|
||||
}
|
||||
|
||||
function parseIcon($) {
|
||||
function parseImage($) {
|
||||
const src = $('#ImgProg').attr('src')
|
||||
const url = new URL(src, 'https://www.reportv.com.ar/buscador/')
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ it('can parse response', async () => {
|
||||
stop: '2022-10-03T05:00:00.000Z',
|
||||
title: '¿Quién tiene la razón?',
|
||||
category: 'Talk Show',
|
||||
icon: 'https://www.reportv.com.ar/buscador/img/Programas/4401882.jpg',
|
||||
image: 'https://www.reportv.com.ar/buscador/img/Programas/4401882.jpg',
|
||||
actors: ['Nancy Álvarez'],
|
||||
description:
|
||||
'Espacio que dará de qué hablar cuando la doctora Nancy Álvarez y Carmen Jara, acompañadas de un jurado implacable, lleguen a escuchar y a resolver los problemas de las partes en conflicto para luego decidir quién tiene la razón.'
|
||||
@@ -85,7 +85,7 @@ it('can parse response', async () => {
|
||||
stop: '2022-10-04T04:00:00.000Z',
|
||||
title: 'Valeria',
|
||||
category: 'Comedia',
|
||||
icon: 'https://www.reportv.com.ar/buscador/img/Programas/18788047.jpg',
|
||||
image: 'https://www.reportv.com.ar/buscador/img/Programas/18788047.jpg',
|
||||
directors: ['Inma Torrente'],
|
||||
actors: [
|
||||
'Diana Gómez',
|
||||
|
||||
Reference in New Issue
Block a user