mirror of
https://github.com/iptv-org/iptv
synced 2026-10-28 05:48:23 -04:00
Update index_category_m3u.js
This commit is contained in:
1 parent
858b2ade67
commit
174c0feaaf
1 file changed
+7
-5
@@ -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 => {
|
||||||
|
|||||||
Reference in new issue
Block a user