mirror of
https://github.com/iptv-org/epg
synced 2026-05-06 17:37:06 -04:00
Update update.ts
This commit is contained in:
@@ -40,8 +40,7 @@ async function main() {
|
|||||||
(channel: epgGrabber.Channel) => new Channel(channel.toObject())
|
(channel: epgGrabber.Channel) => new Channel(channel.toObject())
|
||||||
)
|
)
|
||||||
|
|
||||||
site.totalChannels += channels.count()
|
site.channels = site.channels.concat(channels)
|
||||||
site.markedChannels += channels.filter((channel: Channel) => channel.xmltv_id).count()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sites.add(site)
|
sites.add(site)
|
||||||
@@ -53,8 +52,13 @@ async function main() {
|
|||||||
rows.add(
|
rows.add(
|
||||||
new Collection<HTMLTableDataItem>([
|
new Collection<HTMLTableDataItem>([
|
||||||
{ value: `<a href="sites/${site.domain}">${site.domain}</a>` },
|
{ value: `<a href="sites/${site.domain}">${site.domain}</a>` },
|
||||||
{ value: site.totalChannels.toString(), align: 'right' },
|
{
|
||||||
{ value: site.markedChannels.toString(), align: 'right' },
|
value: site.channels
|
||||||
|
.uniqBy((channel: Channel) => channel.site_id)
|
||||||
|
.count()
|
||||||
|
.toString(),
|
||||||
|
align: 'right'
|
||||||
|
},
|
||||||
{ value: site.getStatus().emoji, align: 'center' },
|
{ value: site.getStatus().emoji, align: 'center' },
|
||||||
{ value: site.getIssueUrls().all().join(', ') }
|
{ value: site.getIssueUrls().all().join(', ') }
|
||||||
])
|
])
|
||||||
@@ -66,7 +70,7 @@ async function main() {
|
|||||||
rows,
|
rows,
|
||||||
new Collection<HTMLTableColumn>([
|
new Collection<HTMLTableColumn>([
|
||||||
{ name: 'Site', align: 'left' },
|
{ name: 'Site', align: 'left' },
|
||||||
{ name: 'Channels<br>(total / with xmltv-id)', colspan: 2, align: 'left' },
|
{ name: 'Channels', align: 'left' },
|
||||||
{ name: 'Status', align: 'left' },
|
{ name: 'Status', align: 'left' },
|
||||||
{ name: 'Notes', align: 'left' }
|
{ name: 'Notes', align: 'left' }
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user