mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update parse.js
This commit is contained in:
parent
9640cf6cad
commit
a701d466c4
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@ async function main() {
|
|||
|
||||
channels = _.uniqBy(channels, c => c.site_id + c.lang)
|
||||
|
||||
channels = _.sortBy(channels, ['lang', c => c.xmltv_id || '_', 'site_id'])
|
||||
channels = _.sortBy(channels, [
|
||||
'lang',
|
||||
c => (c.xmltv_id ? c.xmltv_id.toLowerCase() : '_'),
|
||||
'site_id'
|
||||
])
|
||||
|
||||
const output = xml.create(channels, config.site)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue