Rename to format.js

This commit is contained in:
freearhey 2019-07-20 10:32:16 +03:00
parent f3cb80bc04
commit 06b6279574
2 changed files with 5 additions and 3 deletions

View File

@ -27,12 +27,14 @@ function init() {
channels = util.sortByTitle(channels)
util.createFile(country.file)
util.createFile(country.file, '#EXTM3U\n')
channels.forEach(channel => {
const info = `-1 tvg-id="${channel.id}" tvg-name="${channel.name}" tvg-logo="${channel.logo}" group-title="${channel.group}",${channel.title}`
util.writeToFile(country.file, info, channel.file)
const data = '#EXTINF:' + info + '\n' + channel.file + '\n'
util.writeToFile(country.file, data)
})
total += channels.length

View File

@ -10,7 +10,7 @@
"scripts": {
"test": "node test/index.js",
"generate": "node helpers/generate.js",
"format": "node helpers/formatter.js"
"format": "node helpers/format.js"
},
"repository": {
"type": "git",