mirror of
https://github.com/iptv-org/iptv
synced 2026-10-23 11:38:03 -04:00
Update db.js
This commit is contained in:
1 parent
9c9b6ca46c
commit
085b52b8b2
1 file changed
+5
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user