update custom fix
All checks were successful
Build docker container / build (push) Successful in 4m26s

This commit is contained in:
David Claeys 2024-11-26 13:03:55 +01:00
parent 6543f2ce6c
commit 02133f0692
2 changed files with 10 additions and 3 deletions

View File

@ -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)<br>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)<br>Add option to customize channel endpoint
[11-26-2024](https://github.com/iptv-org/epg/commit/d15911006e163262c0c7f267deae28160c0d7a8f)<br>Add option to customize channel endpoint
- 1.0.16
[11-26-2024](https://github.com/iptv-org/epg/commit/d15911006e163262c0c7f267deae28160c0d7a8f)<br>Fix icons for movistarplus.es

View File

@ -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) {