mirror of
https://github.com/iptv-org/database.git
synced 2024-11-12 15:16:40 -05:00
Update export.js
This commit is contained in:
parent
6c18306c74
commit
801905c081
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ async function main() {
|
|||
const files = await file.list(`${DATA_DIR}/*.csv`)
|
||||
for (const filepath of files) {
|
||||
const filename = file.getFilename(filepath)
|
||||
const json = await csv.load(filepath).catch(err => {
|
||||
const json = await csv.fromFile(filepath).catch(err => {
|
||||
logger.error(chalk.red(`\n${err.message} (${filepath})`))
|
||||
process.exit(1)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue