Update generate.js

- Skip channels without url
This commit is contained in:
freearhey 2021-01-11 13:52:12 +03:00
parent b16b1e9f57
commit 507f30166c

View File

@ -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'] || ''