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
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ function parseIndex() {
for (let item of playlist.items) { for (let item of playlist.items) {
const channel = helper.createChannel(item) const channel = helper.createChannel(item)
if (!channel.url) continue
channel.country.code = countryCode channel.country.code = countryCode
channel.country.name = countryName channel.country.name = countryName
channel.tvg.url = playlist.header.attrs['x-tvg-url'] || '' channel.tvg.url = playlist.header.attrs['x-tvg-url'] || ''