mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Fixes channels:editor script
This commit is contained in:
parent
11856161c2
commit
6e2cc42bc6
5 changed files with 23 additions and 7 deletions
|
@ -50,6 +50,11 @@ async function main() {
|
|||
if (isPromise(parsedChannels)) {
|
||||
parsedChannels = await parsedChannels
|
||||
}
|
||||
parsedChannels = parsedChannels.map((channel: Channel) => {
|
||||
channel.site = config.site
|
||||
|
||||
return channel
|
||||
})
|
||||
|
||||
channels = channels
|
||||
.mergeBy(
|
||||
|
@ -62,7 +67,7 @@ async function main() {
|
|||
(channel: Channel) => channel.site_id
|
||||
])
|
||||
|
||||
const xml = new XML(channels, config.site)
|
||||
const xml = new XML(channels)
|
||||
|
||||
await storage.save(outputFilepath, xml.toString())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue