iptv/scripts/store/setters/categories.js
2021-12-12 07:12:06 +03:00

9 lines
201 B
JavaScript

const categories = require('../../data/categories')
module.exports = function ({ group_title }) {
return group_title
.split(';')
.map(i => categories[i.toLowerCase()])
.filter(i => i)
}