From 02133f06922b3d47ef6b083f170dc868bfb768b7 Mon Sep 17 00:00:00 2001 From: David Claeys Date: Tue, 26 Nov 2024 13:03:55 +0100 Subject: [PATCH] update custom fix --- README.md | 4 +++- fixes/movistarplus.es/movistarplus.es.config.js | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7d7dee4..16b89a5 100644 --- a/README.md +++ b/README.md @@ -120,4 +120,6 @@ Sometimes a new version of this image will be bound to the same source commit. T - 1.0.14 [10-14-2024](https://github.com/iptv-org/epg/commit/7610f7b9f5cc1ccab8d17f3408a95d31b36ace7c)
Change fix for movistarplus.es in order to work with new API - 1.0.15 - [11-26-2024](https://github.com/iptv-org/epg/commit/d15911006e163262c0c7f267deae28160c0d7a8f)
Add option to customize channel endpoint \ No newline at end of file + [11-26-2024](https://github.com/iptv-org/epg/commit/d15911006e163262c0c7f267deae28160c0d7a8f)
Add option to customize channel endpoint +- 1.0.16 + [11-26-2024](https://github.com/iptv-org/epg/commit/d15911006e163262c0c7f267deae28160c0d7a8f)
Fix icons for movistarplus.es \ No newline at end of file diff --git a/fixes/movistarplus.es/movistarplus.es.config.js b/fixes/movistarplus.es/movistarplus.es.config.js index a7679f0..49be564 100644 --- a/fixes/movistarplus.es/movistarplus.es.config.js +++ b/fixes/movistarplus.es/movistarplus.es.config.js @@ -1,7 +1,7 @@ const { DateTime } = require('luxon') const API_PROGRAM_ENDPOINT = 'https://comunicacion.movistarplus.es' -const API_IMAGE_ENDPOINT = 'https://www.movistarplus.es/recorte/n/caratulaH/'; +const API_IMAGE_ENDPOINT = 'https://www.movistarplus.es/recorte/n/externov'; module.exports = { site: 'movistarplus.es', @@ -61,7 +61,12 @@ module.exports = { } function parseIcon(item, channel) { - return `${API_IMAGE_ENDPOINT}/M${channel.site_id}P${item.cod_evento_rejilla}`; + if(item.cod_elemento_emision) + { + return `${API_IMAGE_ENDPOINT}/M${channel.site_id}P${item.cod_elemento_emision}` + } + + return '' } function parseItems(content, channel) {