mirror of
https://github.com/iptv-org/iptv
synced 2026-10-22 11:06:31 -04:00
Update db.js
This commit is contained in:
1 parent
44ce081bf2
commit
df4d7bd943
1 file changed
+10
@@ -83,6 +83,11 @@ db.channels = {
|
||||
})
|
||||
}
|
||||
|
||||
if (!this.nsfw) {
|
||||
output = output.filter(channel => !channel.isNSFW())
|
||||
}
|
||||
|
||||
this.nsfw = true
|
||||
this.duplicates = true
|
||||
this.filter = null
|
||||
|
||||
@@ -93,6 +98,11 @@ db.channels = {
|
||||
|
||||
return this
|
||||
},
|
||||
removeNSFW() {
|
||||
this.nsfw = false
|
||||
|
||||
return this
|
||||
},
|
||||
all() {
|
||||
return this.list
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user