mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Fixes channels:editor script
This commit is contained in:
parent
11856161c2
commit
6e2cc42bc6
5 changed files with 23 additions and 7 deletions
|
@ -3,11 +3,9 @@ import { Channel } from 'epg-grabber'
|
|||
|
||||
export class XML {
|
||||
items: Collection
|
||||
site: string
|
||||
|
||||
constructor(items: Collection, site: string) {
|
||||
constructor(items: Collection) {
|
||||
this.items = items
|
||||
this.site = site
|
||||
}
|
||||
|
||||
toString() {
|
||||
|
@ -18,7 +16,7 @@ export class XML {
|
|||
const xmltv_id = channel.xmltv_id || ''
|
||||
const lang = channel.lang || ''
|
||||
const site_id = channel.site_id || ''
|
||||
output += ` <channel site="${this.site}" lang="${lang}" xmltv_id="${escapeString(
|
||||
output += ` <channel site="${channel.site}" lang="${lang}" xmltv_id="${escapeString(
|
||||
xmltv_id
|
||||
)}" site_id="${site_id}"${logo}>${escapeString(channel.name)}</channel>\r\n`
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue