mirror of
https://github.com/iptv-org/epg
synced 2026-05-08 02:16:59 -04:00
Update streamingtvguides.com.config.js
This commit is contained in:
@@ -30,7 +30,10 @@ module.exports = {
|
||||
})
|
||||
})
|
||||
|
||||
programs = sortBy(uniqBy(programs, p => p.start), p => p.start.valueOf())
|
||||
programs = sortBy(
|
||||
uniqBy(programs, p => p.start),
|
||||
p => p.start.valueOf()
|
||||
)
|
||||
|
||||
return programs
|
||||
},
|
||||
@@ -45,7 +48,7 @@ module.exports = {
|
||||
|
||||
const $ = cheerio.load(data)
|
||||
$('#channel-group-all > div > div').each((i, el) => {
|
||||
const site_id = $(el).find('input').attr('value').replace('&', '&')
|
||||
const site_id = $(el).find('input').attr('value').replace(/&/g, '&')
|
||||
const label = $(el).text().trim()
|
||||
const svgTitle = $(el).find('svg').attr('alt')
|
||||
const name = (label || svgTitle || '').replace(site_id, '').trim()
|
||||
|
||||
Reference in New Issue
Block a user