Update streamingtvguides.com.config.js

This commit is contained in:
freearhey
2026-05-02 16:15:46 +03:00
parent b11f0bb125
commit 9db9f16847

View File

@@ -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 return programs
}, },
@@ -45,7 +48,7 @@ module.exports = {
const $ = cheerio.load(data) const $ = cheerio.load(data)
$('#channel-group-all > div > div').each((i, el) => { $('#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 label = $(el).text().trim()
const svgTitle = $(el).find('svg').attr('alt') const svgTitle = $(el).find('svg').attr('alt')
const name = (label || svgTitle || '').replace(site_id, '').trim() const name = (label || svgTitle || '').replace(site_id, '').trim()