mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 19:07:37 -05:00
Update generate.js
- Skip channels without url
This commit is contained in:
@@ -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'] || ''
|
||||||
|
|||||||
Reference in New Issue
Block a user