mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update generate.ts
This commit is contained in:
@@ -5,7 +5,7 @@ import { SITES_DIR, API_DIR } from '../../constants'
|
|||||||
import { Channel } from 'epg-grabber'
|
import { Channel } from 'epg-grabber'
|
||||||
|
|
||||||
type OutputItem = {
|
type OutputItem = {
|
||||||
channel: string
|
channel: string | null
|
||||||
site: string
|
site: string
|
||||||
site_id: string
|
site_id: string
|
||||||
site_name: string
|
site_name: string
|
||||||
@@ -33,7 +33,7 @@ async function main() {
|
|||||||
|
|
||||||
const output = parsedChannels.map((channel: Channel): OutputItem => {
|
const output = parsedChannels.map((channel: Channel): OutputItem => {
|
||||||
return {
|
return {
|
||||||
channel: channel.xmltv_id || '',
|
channel: channel.xmltv_id || null,
|
||||||
site: channel.site || '',
|
site: channel.site || '',
|
||||||
site_id: channel.site_id || '',
|
site_id: channel.site_id || '',
|
||||||
site_name: channel.name,
|
site_name: channel.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user