iptv-org / epg

Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources.
https://iptv-org.github.io/
The Unlicense
1.66k stars 156 forks source link

ontvtonight.com - update channels:us broken #2360

Closed PnoT closed 4 days ago

PnoT commented 2 months ago

Site

ontvtonight.com

Description

I'm trying to update the channel list and coming up with the following error:

PS C:\Tools\npm\epg> npm run channels:parse -- --config=./sites/ontvtonight.com/ontvtonight.com.config.js --output=./sites/ontvtonight.com/ontvtonight.com_us.channels.xml --set=country:us

channels:parse npx tsx scripts/commands/channels/parse.ts --config=./sites/ontvtonight.com/ontvtonight.com.config.js --output=./sites/ontvtonight.com/ontvtonight.com_us.channels.xml --set=country:us

(node:10104) ExperimentalWarning: --experimental-loader may be removed in the future; instead use register(): --import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///C%3A/Tools/npm/epg/node_modules/tsx/dist/loader.mjs", pathToFileURL("./"));' (Use node --trace-warnings ... to show where the warning was created)

C:\Tools\npm\epg\sites\ontvtonight.com\ontvtonight.com.config.js:137 const [, number, slug] = url.match(/\/(\d+)\/(.*).html$/) ^ TypeError: Cannot read properties of undefined (reading 'match') at Element2. (C:\Tools\npm\epg\sites\ontvtonight.com\ontvtonight.com.config.js:137:42) at LoadedCheerio2.each (C:\Tools\npm\epg\node_modules\cheerio\lib\api\traversing.js:519:26) at Object.channels (C:\Tools\npm\epg\sites\ontvtonight.com\ontvtonight.com.config.js:133:29) at processTicksAndRejections (node:internal/process/task_queues:95:5) at main (C:\Tools\npm\epg\scripts\commands\channels\parse.ts:50:22)