Update update-readme.ts

This commit is contained in:
Aleksandr Statciuk 2021-11-17 13:33:33 +03:00
parent a0aba6a7b9
commit 6e8b6e4ef6
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ async function main() {
const xml: string = file.read(filename)
const epg: EPG = parser.parse(xml)
if (!epg.channels.length) return
const log = file.read(`logs/${site}_${code}.log`)
const errorCount = (log.match(/ERROR/gi) || []).length