iptv/scripts/generators/index_m3u.js
2022-02-11 19:56:11 +03:00

8 lines
237 B
JavaScript

const api = require('../core/api')
const _ = require('lodash')
module.exports = async function (streams = []) {
streams = _.filter(streams, stream => stream.is_nsfw === false)
return { filepath: 'index.m3u', items: streams }
}