mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Skip channel addition if no site_id
was found
This commit is contained in:
parent
270e85cfae
commit
e3ae8f4292
1 changed files with 5 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue