mirror of
https://github.com/iptv-org/epg
synced 2026-05-26 02:59:29 -04:00
Update nowplayer.now.com
This commit is contained in:
@@ -39,17 +39,18 @@ module.exports = {
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
||||
const $ = cheerio.load(html)
|
||||
const channels = $('body > div.container > .tv-guide-s-g > div > div').toArray()
|
||||
let channels = []
|
||||
|
||||
return channels.map(item => {
|
||||
const $item = cheerio.load(item)
|
||||
return {
|
||||
const $ = cheerio.load(html)
|
||||
$('body > div.container > .tv-guide-s-g > div > div').each((i, el) => {
|
||||
channels.push({
|
||||
lang,
|
||||
site_id: $item('.guide-g-play > p.channel').text().replace('CH', ''),
|
||||
name: $item('.thumbnail > a > span.image > p').text()
|
||||
}
|
||||
site_id: $(el).find('.guide-g-play > p.channel').text().replace('CH', ''),
|
||||
name: $(el).find('.thumbnail > a > span.image > p').text()
|
||||
})
|
||||
})
|
||||
|
||||
return channels
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user