mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Delete grab.js
This commit is contained in:
parent
d2f5804130
commit
916f24f5f9
1 changed files with 0 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
|||
const { spawn } = require('child_process')
|
||||
const { program } = require('commander')
|
||||
|
||||
program.argument('<site>', 'Name of the site to grab').parse(process.argv)
|
||||
|
||||
const site = program.args[0]
|
||||
|
||||
const command = spawn(
|
||||
'npx',
|
||||
[
|
||||
'epg-grabber',
|
||||
`--config=sites/${site}/${site}.config.js`,
|
||||
`--channels=sites/${site}/${site}*.channels.xml`,
|
||||
`--output=guides/{lang}/{site}.xml`
|
||||
],
|
||||
{ shell: process.platform == 'win32' }
|
||||
)
|
||||
|
||||
command.stdout.on('data', data => {
|
||||
process.stdout.write(`${data}`)
|
||||
})
|
||||
|
||||
command.stderr.on('data', data => {
|
||||
process.stdout.write(`${data}`)
|
||||
})
|
||||
|
||||
command.on('error', error => {
|
||||
console.log(`error: ${error.message}`)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue