mirror of
https://github.com/iptv-org/iptv
synced 2026-10-22 02:56:48 -04:00
Update Playlist.js
This commit is contained in:
1 parent
31f55e8f76
commit
e35b620435
1 file changed
+1
-3
@@ -7,9 +7,7 @@ module.exports = class Playlist {
|
||||
this.name = name
|
||||
this.country = country
|
||||
this.header = header
|
||||
this.channels = items
|
||||
.map(item => new Channel({ data: item, header, sourceUrl: url }))
|
||||
.filter(channel => channel.url)
|
||||
this.channels = items.map(item => new Channel(item)).filter(channel => channel.url)
|
||||
this.updated = false
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user