Update db.js

what-a-patch-1
freearhey 5 years ago
parent 9c9b6ca46c
commit 085b52b8b2

@ -34,6 +34,11 @@ db.channels = {
all() {
return this.list
},
sfw() {
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
return this.list.filter(i => sfwCategories.includes(i.category))
},
forCountry(country) {
if (!country.code) return this.list.filter(channel => !channel.countries.length)

Loading…
Cancel
Save