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
77a620cd48
commit
ea4592aff2
1 file changed
-7
@@ -7,12 +7,6 @@ const playlist = {}
|
||||
class Playlist {
|
||||
constructor(items = [], options = {}) {
|
||||
this.header = {}
|
||||
if (options.public) {
|
||||
let guides = items
|
||||
.map(item => (item.guides.length ? item.guides[0].url : null))
|
||||
.filter(i => i)
|
||||
this.header['x-tvg-url'] = _.uniq(guides).sort().join(',')
|
||||
}
|
||||
|
||||
this.links = []
|
||||
for (const item of items) {
|
||||
@@ -29,7 +23,6 @@ class Playlist {
|
||||
} else {
|
||||
attrs = {
|
||||
'tvg-id': stream.get('tvg_id'),
|
||||
status: stream.get('status'),
|
||||
'user-agent': stream.get('user_agent') || undefined
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user