From c1835ac2eb14e3c494bdd0718c341ed9e40b1923 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:05:27 +0300 Subject: [PATCH] Update ontvtonight.com.config.js --- sites/ontvtonight.com/ontvtonight.com.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/sites/ontvtonight.com/ontvtonight.com.config.js b/sites/ontvtonight.com/ontvtonight.com.config.js index 009dee55..b8ca61c1 100644 --- a/sites/ontvtonight.com/ontvtonight.com.config.js +++ b/sites/ontvtonight.com/ontvtonight.com.config.js @@ -134,6 +134,7 @@ module.exports = { let name = $(el).find('center > a:eq(1)').text() name = name.replace(/\-\-/gi, '-') const url = $(el).find('center > a:eq(1)').attr('href') + if (!url) return const [, number, slug] = url.match(/\/(\d+)\/(.*)\.html$/) channels.push({