iptv/scripts/generators/index_m3u.js

8 lines
249 B
JavaScript
Raw Normal View History

2022-02-07 00:27:15 +01:00
const api = require('../core/api')
const _ = require('lodash')
module.exports = async function (streams = []) {
2022-02-07 01:06:27 +01:00
streams = _.filter(streams, s => !s.channel || s.channel.is_nsfw === false)
2022-02-07 00:27:15 +01:00
return { filepath: 'index.m3u', items: streams }
}