|
|
|
@ -4,6 +4,7 @@ const categories = require('./categories')
|
|
|
|
const path = require('path')
|
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
|
|
|
|
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
|
|
|
|
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
|
|
|
|
|
|
|
|
const nsfwCategories = categories.filter(c => c.nsfw).map(c => c.name)
|
|
|
|
|
|
|
|
|
|
|
|
const parser = {}
|
|
|
|
const parser = {}
|
|
|
|
|
|
|
|
|
|
|
|
@ -234,6 +235,10 @@ class Channel {
|
|
|
|
isSFW() {
|
|
|
|
isSFW() {
|
|
|
|
return sfwCategories.includes(this.category)
|
|
|
|
return sfwCategories.includes(this.category)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isNSFW() {
|
|
|
|
|
|
|
|
return nsfwCategories.includes(this.category)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = parser
|
|
|
|
module.exports = parser
|
|
|
|
|