mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update update-readme.js
This commit is contained in:
@@ -54,7 +54,7 @@ async function generateCountriesTable(items = []) {
|
|||||||
rows = _.groupBy(rows, 'name')
|
rows = _.groupBy(rows, 'name')
|
||||||
|
|
||||||
const output = table.create(rows, [
|
const output = table.create(rows, [
|
||||||
'Country',
|
'Country ',
|
||||||
'Channels',
|
'Channels',
|
||||||
'EPG',
|
'EPG',
|
||||||
'Status '
|
'Status '
|
||||||
@@ -70,15 +70,3 @@ async function updateReadme() {
|
|||||||
await file.createDir(file.dirname(config.build))
|
await file.createDir(file.dirname(config.build))
|
||||||
await markdown.compile(options.config)
|
await markdown.compile(options.config)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getLogRecords() {
|
|
||||||
const logPath = `${LOGS_DIR}/guides.log`
|
|
||||||
const records = await parser.parseLogs(logPath)
|
|
||||||
|
|
||||||
return records.map(item => {
|
|
||||||
const code = item.group.split('/')[0] || ''
|
|
||||||
item.code = code.toUpperCase()
|
|
||||||
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user