From 507f30166c6a3016feb65e640e4ff2a4ae06d999 Mon Sep 17 00:00:00 2001 From: freearhey Date: Mon, 11 Jan 2021 13:52:12 +0300 Subject: [PATCH] Update generate.js - Skip channels without url --- scripts/generate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/generate.js b/scripts/generate.js index 01d9836f5c..461ea0f5bb 100644 --- a/scripts/generate.js +++ b/scripts/generate.js @@ -63,6 +63,7 @@ function parseIndex() { for (let item of playlist.items) { const channel = helper.createChannel(item) + if (!channel.url) continue channel.country.code = countryCode channel.country.name = countryName channel.tvg.url = playlist.header.attrs['x-tvg-url'] || ''