mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
import { Logger } from '@freearhey/core'
|
|
import { ApiClient } from '../../core'
|
|
|
|
async function main() {
|
|
const logger = new Logger()
|
|
const client = new ApiClient({ logger })
|
|
|
|
const requests = [
|
|
client.download('channels.json'),
|
|
client.download('countries.json'),
|
|
client.download('regions.json'),
|
|
client.download('subdivisions.json')
|
|
]
|
|
|
|
await Promise.all(requests)
|
|
}
|
|
|
|
main()
|