Update index_category_m3u.js

This commit is contained in:
Aleksandr Statciuk 2022-02-12 03:12:00 +03:00
parent 081fcac929
commit 0c3a1df90f
1 changed files with 7 additions and 5 deletions

View File

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