mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update update-readme.ts
This commit is contained in:
parent
4b6fb9ebb9
commit
0584c75f57
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ function generateTable(guides: Guide[], header: string[]) {
|
||||||
const rowspan = root && size > 1 ? ` rowspan="${size}"` : ''
|
const rowspan = root && size > 1 ? ` rowspan="${size}"` : ''
|
||||||
let status = '🟢'
|
let status = '🟢'
|
||||||
if (guide.emptyGuides === guide.channelCount) status = '🔴'
|
if (guide.emptyGuides === guide.channelCount) status = '🔴'
|
||||||
|
else if (guide.emptyGuides > 0) status = '🟡'
|
||||||
const cell1 = root ? `<td align="left" valign="top" nowrap${rowspan}>${name}</td>` : ''
|
const cell1 = root ? `<td align="left" valign="top" nowrap${rowspan}>${name}</td>` : ''
|
||||||
output += `\t\t<tr>${cell1}<td align="right" nowrap>${guide.channelCount}</td><td align="left" nowrap><code>${guide.url}</code></td><td align="center">${status}</td></tr>\n`
|
output += `\t\t<tr>${cell1}<td align="right" nowrap>${guide.channelCount}</td><td align="left" nowrap><code>${guide.url}</code></td><td align="center">${status}</td></tr>\n`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue