mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Merge branch 'master' into remove-duplicates-from-generated-playlists
This commit is contained in:
commit
b0d510fc7f
31 changed files with 343 additions and 382 deletions
|
@ -3,6 +3,8 @@ const utils = require('./utils')
|
|||
const categories = require('./categories')
|
||||
const path = require('path')
|
||||
|
||||
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
|
||||
|
||||
const parser = {}
|
||||
|
||||
parser.parseIndex = function () {
|
||||
|
@ -232,6 +234,10 @@ class Channel {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
isSFW() {
|
||||
return sfwCategories.includes(this.category)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = parser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue