Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ontvtonight.com - update channels:us broken #2360

Open
PnoT opened this issue Apr 21, 2024 · 0 comments
Open

ontvtonight.com - update channels:us broken #2360

PnoT opened this issue Apr 21, 2024 · 0 comments
Labels
broken guide Error in the EPG

Comments

@PnoT
Copy link

PnoT commented Apr 21, 2024

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)

@PnoT PnoT added the broken guide Error in the EPG label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broken guide Error in the EPG
Development

No branches or pull requests

1 participant