mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-14 11:00:03 -04:00
Update parser.js
This commit is contained in:
parent
40a2e8c1ea
commit
e6a9cad632
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,7 @@ const categories = require('./categories')
|
|||
const path = require('path')
|
||||
|
||||
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
|
||||
const nsfwCategories = categories.filter(c => c.nsfw).map(c => c.name)
|
||||
|
||||
const parser = {}
|
||||
|
||||
|
@ -234,6 +235,10 @@ class Channel {
|
|||
isSFW() {
|
||||
return sfwCategories.includes(this.category)
|
||||
}
|
||||
|
||||
isNSFW() {
|
||||
return nsfwCategories.includes(this.category)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = parser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue