Update index_category_m3u.js

what-a-patch-1
Aleksandr Statciuk 4 years ago
parent 858b2ade67
commit 174c0feaaf

@ -13,11 +13,13 @@ module.exports = async function (streams = []) {
return
}
stream.categories.forEach(category => {
const item = _.cloneDeep(stream)
item.group_title = category.name
items.push(item)
})
stream.categories
.filter(c => c)
.forEach(category => {
const item = _.cloneDeep(stream)
item.group_title = category.name
items.push(item)
})
})
items = _.sortBy(items, item => {

Loading…
Cancel
Save