mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-11 17:40:03 -04:00
23 lines
592 B
TypeScript
23 lines
592 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('blocklist.json'),
|
|
client.download('categories.json'),
|
|
client.download('channels.json'),
|
|
client.download('countries.json'),
|
|
client.download('languages.json'),
|
|
client.download('regions.json'),
|
|
client.download('subdivisions.json'),
|
|
client.download('feeds.json'),
|
|
client.download('timezones.json')
|
|
]
|
|
|
|
await Promise.all(requests)
|
|
}
|
|
|
|
main()
|