mirror of
https://github.com/iptv-org/iptv.git
synced 2024-09-15 00:00:54 +02:00
13 lines
270 B
JavaScript
13 lines
270 B
JavaScript
module.exports = function () {
|
|
if (this.group_title !== undefined) return this.group_title
|
|
|
|
if (Array.isArray(this.categories) && this.categories.length) {
|
|
return this.categories
|
|
.map(i => i.name)
|
|
.sort()
|
|
.join(';')
|
|
}
|
|
|
|
return 'Undefined'
|
|
}
|