pull/3183/head
Tribalize 4 years ago
parent 017b089ab6
commit d66bb7bf1d

@ -2,7 +2,7 @@ const categories = require('./categories')
const parser = require('./parser')
const utils = require('./utils')
const nsfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
const db = {}
@ -106,8 +106,8 @@ db.channels = {
all() {
return this.list
},
nsfw() {
return this.list.filter(i => nsfwCategories.includes(i.category))
sfw() {
return this.list.filter(i => sfwCategories.includes(i.category))
},
forCountry(country) {
this.filter = {

@ -3,7 +3,7 @@ const utils = require('./utils')
const categories = require('./categories')
const path = require('path')
const nsfwCategories = 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 = {}
@ -232,8 +232,8 @@ class Channel {
}
}
isNSFW() {
return nsfwCategories.includes(this.category)
isSFW() {
return sfwCategories.includes(this.category)
}
isNSFW() {

Loading…
Cancel
Save