Merge branch 'master' into remove-duplicates-from-generated-playlists

This commit is contained in:
freearhey 2021-05-08 14:50:18 +03:00
commit b0d510fc7f
31 changed files with 343 additions and 382 deletions

View file

@ -3,6 +3,8 @@ const utils = require('./utils')
const categories = require('./categories')
const path = require('path')
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
const parser = {}
parser.parseIndex = function () {
@ -232,6 +234,10 @@ class Channel {
}
}
}
isSFW() {
return sfwCategories.includes(this.category)
}
}
module.exports = parser