iptv/scripts/store/setters/categories.js

9 lines
201 B
JavaScript
Raw Normal View History

2021-12-12 05:12:06 +01:00
const categories = require('../../data/categories')
module.exports = function ({ group_title }) {
return group_title
.split(';')
.map(i => categories[i.toLowerCase()])
.filter(i => i)
}