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
bace0e81d6
commit
f366bb7b5f
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,11 @@ db.channels = {
|
||||||
all() {
|
all() {
|
||||||
return this.list
|
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) {
|
forCountry(country) {
|
||||||
if (!country.code) return this.list.filter(channel => !channel.countries.length)
|
if (!country.code) return this.list.filter(channel => !channel.countries.length)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue