mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 18:10:04 -04:00
wip
This commit is contained in:
parent
86e0c2f7da
commit
b535ff4059
10 changed files with 254 additions and 261 deletions
|
@ -6,6 +6,7 @@ module.exports = async function (streams = []) {
|
|||
await api.languages.load()
|
||||
let languages = await api.languages.all()
|
||||
languages = _.uniqBy(languages, 'code')
|
||||
streams = _.filter(streams, s => !s.channel || s.channel.is_nsfw === false)
|
||||
for (const language of languages) {
|
||||
let items = _.filter(streams, { channel: { languages: [language.code] } })
|
||||
if (items.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue