mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update parse.js
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user