iptv/scripts/generators/index_m3u.js
Aleksandr Statciuk 5e1945ce4a wip
2022-02-07 03:06:27 +03:00

8 lines
249 B
JavaScript

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