Closed marianpopeanga closed 1 year ago
I was seeing a similar issue with a different site, gatotv.com
In this case the problem was with a specific channel where the titles object was null.
To identify the channel, you can add the following before line 192 of epg/scripts/commands/epg/grab.js
if ( program.titles[0] == null )
logger.info( JSON.stringify(program))
If you then run the npm grab it should output the channel that is missing the data. While this does not solve your issue it can at least help identify which channel is causing the problem. In the case of the gatortv.com guide the issue was specific programs for specific channels. In some cases the html being returned for certain programs was different which resulted in the program title to be null I hope it helps.
Site
tvpassport.com
Description
This guide takes very long time to complete and now it fails just before completion:
/volume1/home/marian/lucru/epg/scripts/commands/epg/grab.js:192 let programLang = program.titles[0].lang ^
TypeError: Cannot read properties of undefined (reading 'lang') at save (/volume1/home/marian/lucru/epg/scripts/commands/epg/grab.js:192:43) at runJob (/volume1/home/marian/lucru/epg/scripts/commands/epg/grab.js:88:9) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async main (/volume1/home/marian/lucru/epg/scripts/commands/epg/grab.js:52:5)****