mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Skip channel addition if no site_id was found
This commit is contained in:
@@ -40,7 +40,11 @@ module.exports = {
|
||||
$('#side-nav > div > div > div > nav:nth-child(1) > ul > li > ul > li').each((i, el) => {
|
||||
const name = $(el).find('a > span').text()
|
||||
const url = $(el).find('a').attr('href')
|
||||
const [, site_id] = url.match(/\/(\d+)\?player-fullscreen/)
|
||||
const [, site_id = null] = url.match(/\/(\d+)\?player-fullscreen/) ?? []
|
||||
|
||||
if (!site_id) {
|
||||
return
|
||||
}
|
||||
|
||||
channels.push({
|
||||
lang: 'en',
|
||||
|
||||
Reference in New Issue
Block a user