test
This commit is contained in:
parent
d0962b4f48
commit
b8413d054e
|
@ -2,7 +2,7 @@ const categories = require('./categories')
|
|||
const parser = require('./parser')
|
||||
const utils = require('./utils')
|
||||
|
||||
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
|
||||
const nsfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
|
||||
|
||||
const db = {}
|
||||
|
||||
|
@ -106,8 +106,8 @@ db.channels = {
|
|||
all() {
|
||||
return this.list
|
||||
},
|
||||
sfw() {
|
||||
return this.list.filter(i => sfwCategories.includes(i.category))
|
||||
nsfw() {
|
||||
return this.list.filter(i => nsfwCategories.includes(i.category))
|
||||
},
|
||||
forCountry(country) {
|
||||
this.filter = {
|
||||
|
|
|
@ -3,7 +3,7 @@ const utils = require('./utils')
|
|||
const categories = require('./categories')
|
||||
const path = require('path')
|
||||
|
||||
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
|
||||
const nsfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
|
||||
const nsfwCategories = categories.filter(c => c.nsfw).map(c => c.name)
|
||||
|
||||
const parser = {}
|
||||
|
@ -232,7 +232,7 @@ class Channel {
|
|||
}
|
||||
}
|
||||
|
||||
isSFW() {
|
||||
isNSFW() {
|
||||
return sfwCategories.includes(this.category)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue