diff --git a/sites/bein.com/bein.com.config.js b/sites/bein.com/bein.com.config.js index 5377d4c57..03fd79696 100644 --- a/sites/bein.com/bein.com.config.js +++ b/sites/bein.com/bein.com.config.js @@ -74,11 +74,17 @@ module.exports = { const id = $(el).attr('id') if (!id || !/^channels_\d+/.test(id)) return const [, channelId] = id.split('_') + let name = channelId + const href = $(el).find('a').attr('href') + if (href) { + const [, , , channelSlug] = href.split('/') + name = channelSlug + } channels.push({ lang, site_id: `${category}#${channelId}`, - name: channelId + name }) }) }