Update generate-playlist.js

This commit is contained in:
Aleksandr Statciuk committed 2022-02-11 19:56:11 +03:00
1 parent d3774679bd
commit e3e4441909
65 files changed
+246 -156

No files matched your search

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