Update bein.com.config.js

This commit is contained in:
freearhey
2026-08-01 18:18:14 +03:00
parent 4c29171cdc
commit a89e856ceb
+7 -1
View File
@@ -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
})
})
}