mirror of
https://github.com/iptv-org/epg
synced 2026-04-17 08:09:23 -04:00
update deps & clean out package.json
This commit is contained in:
@@ -5,7 +5,6 @@ import { select, input } from '@inquirer/prompts'
|
||||
import { generateChannelsXML } from '../../core'
|
||||
import { Storage } from '@freearhey/storage-js'
|
||||
import { Channel } from '../../models'
|
||||
import nodeCleanup from 'node-cleanup'
|
||||
import * as sdk from '@iptv-org/sdk'
|
||||
import { Command } from 'commander'
|
||||
import readline from 'readline'
|
||||
@@ -42,8 +41,14 @@ const storage = new Storage()
|
||||
let channelsFromXML = new Collection<Channel>()
|
||||
|
||||
main(filepath)
|
||||
nodeCleanup(() => {
|
||||
process.on('SIGINT', () => {
|
||||
save(filepath, channelsFromXML)
|
||||
process.exit(0)
|
||||
})
|
||||
|
||||
process.on('SIGTERM', () => {
|
||||
save(filepath, channelsFromXML)
|
||||
process.exit(0)
|
||||
})
|
||||
|
||||
export default async function main(filepath: string) {
|
||||
|
||||
Reference in New Issue
Block a user