Update generate-playlist.js

This commit is contained in:
Aleksandr Statciuk committed 2022-02-11 19:56:11 +03:00
1 parent d3774679bd
commit e3e4441909
65 files changed
+246 -156

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ playlist.create = function (items = [], options = {}) {
const header = {}
if (options.public) {
let guides = items.map(item => item.tvg_url).filter(i => i)
let guides = items.map(item => (item.guides.length ? item.guides[0].url : null)).filter(i => i)
header['x-tvg-url'] = _.uniq(guides).sort().join(',')
}
p.setHeader(header)