mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 02:16:40 -05:00
fix
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="3562">FRANCE 24 Espagnol</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="3738">CARTOONITO</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="3767">SQOOL TV</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="3779" logo="https://upload.wikimedia.org/wikipedia/fr/5/55/C%2B_Box_Office.png">CANAL+BOX OFFICE</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="3779">CANAL+BOX OFFICE</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="3786">TVMONACO</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="3795">DAZN 1</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="90150">TRACE URBAN</channel>
|
||||
@@ -195,7 +195,7 @@
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="Boomerang.fr@Plus1" site_id="928">BOOMERANG +1</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="CanalJ.fr" site_id="32">CANAL J</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="CanalPlus.fr" site_id="34">CANAL+</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="33" logo="https://upload.wikimedia.org/wikipedia/commons/7/76/Logo_C%2BCIN%C3%89MA%28S%29.jpg">CANAL+CINEMA(S)</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="" site_id="33">CANAL+CINEMA(S)</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="CanalPlusDocs.fr" site_id="3347">CANAL+DOCS</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="CanalPlusGrandEcran.fr" site_id="3349">CANAL+GRAND ECRAN</channel>
|
||||
<channel site="chaines-tv.orange.fr" lang="fr" xmltv_id="CanalPlusKids.fr" site_id="3348">CANAL+kids</channel>
|
||||
|
||||
@@ -9,7 +9,7 @@ module.exports = {
|
||||
.add(1, 'd')
|
||||
.valueOf()}&after=${channel.site_id}&limit=1`
|
||||
},
|
||||
async parser({ content, channel }) {
|
||||
parser: function ({ content, channel }) {
|
||||
let programs = []
|
||||
const items = parseItems(content, channel)
|
||||
|
||||
@@ -20,7 +20,7 @@ module.exports = {
|
||||
let itemDetails = null
|
||||
if (url) {
|
||||
try {
|
||||
const response = await axios.get(url, {}, {
|
||||
const response = axios.get(url, {}, {
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json'
|
||||
@@ -74,7 +74,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
function parseDetailURL(item) {
|
||||
return item.links && item.links.length ? item.links[0].href : null
|
||||
return item?.links && item?.links.length ? item?.links[0]?.href : null
|
||||
}
|
||||
|
||||
function parseDirectors(itemDetails) {
|
||||
|
||||
@@ -11,7 +11,7 @@ const channel = {
|
||||
xmltv_id: 'TF1.fr'
|
||||
}
|
||||
const content =
|
||||
'{"192":[{"id":1635062528017,"programType":"EPISODE","title":"Tête de liste","channelId":"192","channelZappingNumber":11,"covers":[{"format":"RATIO_16_9","url":"https://proxymedia.woopic.com/340/p/169_EMI_9697669.jpg"},{"format":"RATIO_4_3","url":"https://proxymedia.woopic.com/340/p/43_EMI_9697669.jpg"}],"diffusionDate":1636328100,"duration":2700,"csa":2,"synopsis":"Un tueur en série prend un plaisir pervers à prévenir les autorités de Tallahassee avant chaque nouveau meurtre. Rossi apprend le décès d\'un de ses vieux amis.","languageVersion":"VM","hearingImpaired":true,"audioDescription":false,"season":{"number":10,"episodesCount":23,"serie":{"title":"Esprits criminels"}},"episodeNumber":12,"definition":"SD","links":[{"rel":"SELF","href":"https://rp-live.orange.fr/live-webapp/v3/applications/STB4PC/programs/1635062528017"}],"dayPart":"OTHER","catchupId":null,"genre":"Série","genreDetailed":"Série Suspense"}]}'
|
||||
'{"192":[{"id":1635062528017,"programType":"EPISODE","title":"Tête de liste","channelId":"192","channelZappingNumber":11,"covers":[{"format":"RATIO_16_9","url":"https://proxymedia.woopic.com/340/p/169_EMI_9697669.jpg"},{"format":"RATIO_4_3","url":"https://proxymedia.woopic.com/340/p/43_EMI_9697669.jpg"}],"diffusionDate":1636328100,"duration":2700,"csa":2,"synopsis":"Un tueur en série prend un plaisir pervers à prévenir les autorités de Tallahassee avant chaque nouveau meurtre. Rossi apprend le décès d\'un de ses vieux amis.","languageVersion":"VM","hearingImpaired":true,"audioDescription":false,"season":{"number":10,"episodesCount":23,"serie":{"title":"Esprits criminels"}},"episodeNumber":12,"definition":"SD","dayPart":"OTHER","catchupId":null,"genre":"Série","genreDetailed":"Série Suspense"}]}'
|
||||
|
||||
it('can generate valid url', () => {
|
||||
const result = url({ channel, date })
|
||||
|
||||
Reference in New Issue
Block a user