iptv/scripts/generators/index_m3u.js

8 lines
237 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-11 17:56:11 +01:00
streams = _.filter(streams, stream => stream.is_nsfw === false)
2022-02-07 00:27:15 +01:00
return { filepath: 'index.m3u', items: streams }
}