mirror of
https://github.com/iptv-org/epg
synced 2026-09-06 03:49:49 -04:00
Update bein.com.config.js
This commit is contained in:
@@ -74,11 +74,17 @@ module.exports = {
|
|||||||
const id = $(el).attr('id')
|
const id = $(el).attr('id')
|
||||||
if (!id || !/^channels_\d+/.test(id)) return
|
if (!id || !/^channels_\d+/.test(id)) return
|
||||||
const [, channelId] = id.split('_')
|
const [, channelId] = id.split('_')
|
||||||
|
let name = channelId
|
||||||
|
const href = $(el).find('a').attr('href')
|
||||||
|
if (href) {
|
||||||
|
const [, , , channelSlug] = href.split('/')
|
||||||
|
name = channelSlug
|
||||||
|
}
|
||||||
|
|
||||||
channels.push({
|
channels.push({
|
||||||
lang,
|
lang,
|
||||||
site_id: `${category}#${channelId}`,
|
site_id: `${category}#${channelId}`,
|
||||||
name: channelId
|
name
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user