fix meo's image url
This commit is contained in:
1 parent
c4c071f0ac
commit
4b02dbd731
2 files changed
+2
-2
No files matched your search
@@ -47,7 +47,7 @@ module.exports = {
|
|||||||
// Construct image URL using the same logic as before if possible
|
// Construct image URL using the same logic as before if possible
|
||||||
if (item.Title && channel.site_id) {
|
if (item.Title && channel.site_id) {
|
||||||
const encodedTitle = encodeURIComponent(item.Title)
|
const encodedTitle = encodeURIComponent(item.Title)
|
||||||
const image = `https://proxycache.online.meo.pt/eemstb/ImageHandler.ashx?evTitle=${encodedTitle}&chCallLetter=${channel.site_id}&profile=16_9&width=600`
|
const image = `https://cdn-er-images.online.meo.pt/eemstb/ImageHandler.ashx?chCallLetter=${channel.site_id}&progTitle=${encodedTitle}&profile=16_9&profileFallback=false&noFallback=true&appSource=PC_CHROME_PWA&width=600&csf`
|
||||||
prog.icon = { src: image }
|
prog.icon = { src: image }
|
||||||
prog.image = image
|
prog.image = image
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ it('can parse response', async () => {
|
|||||||
title: 'Barman - Ep. 4',
|
title: 'Barman - Ep. 4',
|
||||||
description: "'Barman' é uma série de comédia dramática sobre um jovem comediante que começa a trabalhar como Barman porque precisa de arranjar dinheiro depressa, pelo caminho é obrigado a lidar com a vida noturna e conciliar duas realidades diferentes.",
|
description: "'Barman' é uma série de comédia dramática sobre um jovem comediante que começa a trabalhar como Barman porque precisa de arranjar dinheiro depressa, pelo caminho é obrigado a lidar com a vida noturna e conciliar duas realidades diferentes.",
|
||||||
icon: {
|
icon: {
|
||||||
src: 'https://proxycache.online.meo.pt/eemstb/ImageHandler.ashx?evTitle=Barman%20-%20Ep.%204&chCallLetter=RTPM&profile=16_9&width=600'
|
src: 'https://cdn-er-images.online.meo.pt/eemstb/ImageHandler.ashx?chCallLetter=RTPM&progTitle=Barman%20-%20Ep.%204&profile=16_9&profileFallback=false&noFallback=true&appSource=PC_CHROME_PWA&width=1920&csf'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user