Update generate.js
This commit is contained in:
parent
b0d510fc7f
commit
ed60663c88
|
@ -13,8 +13,8 @@ function main() {
|
||||||
generateCountryIndex()
|
generateCountryIndex()
|
||||||
generateLanguageIndex()
|
generateLanguageIndex()
|
||||||
generateCategories()
|
generateCategories()
|
||||||
generateLanguages()
|
|
||||||
generateCountries()
|
generateCountries()
|
||||||
|
generateLanguages()
|
||||||
generateChannelsJson()
|
generateChannelsJson()
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
@ -205,7 +205,7 @@ function generateChannelsJson() {
|
||||||
const channels = db.channels
|
const channels = db.channels
|
||||||
.sortBy(['name', 'url'])
|
.sortBy(['name', 'url'])
|
||||||
.all()
|
.all()
|
||||||
.map(c => c.toJSON())
|
.map(c => c.toObject())
|
||||||
utils.createFile(filename, JSON.stringify(channels))
|
utils.createFile(filename, JSON.stringify(channels))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue