mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Update db.js
This commit is contained in:
parent
8ac52e983a
commit
8626f1f2d9
1 changed files with 10 additions and 0 deletions
|
@ -83,6 +83,11 @@ db.channels = {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.nsfw) {
|
||||||
|
output = output.filter(channel => !channel.isNSFW())
|
||||||
|
}
|
||||||
|
|
||||||
|
this.nsfw = true
|
||||||
this.duplicates = true
|
this.duplicates = true
|
||||||
this.filter = null
|
this.filter = null
|
||||||
|
|
||||||
|
@ -93,6 +98,11 @@ db.channels = {
|
||||||
|
|
||||||
return this
|
return this
|
||||||
},
|
},
|
||||||
|
removeNSFW() {
|
||||||
|
this.nsfw = false
|
||||||
|
|
||||||
|
return this
|
||||||
|
},
|
||||||
all() {
|
all() {
|
||||||
return this.list
|
return this.list
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue