Update Playlist.js
This commit is contained in:
parent
573174c79d
commit
b48457fe62
@ -7,9 +7,7 @@ module.exports = class Playlist {
|
|||||||
this.name = name
|
this.name = name
|
||||||
this.country = country
|
this.country = country
|
||||||
this.header = header
|
this.header = header
|
||||||
this.channels = items
|
this.channels = items.map(item => new Channel(item)).filter(channel => channel.url)
|
||||||
.map(item => new Channel({ data: item, header, sourceUrl: url }))
|
|
||||||
.filter(channel => channel.url)
|
|
||||||
this.updated = false
|
this.updated = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user