Update generate-playlist.js

This commit is contained in:
Aleksandr Statciuk
2022-02-11 19:56:11 +03:00
parent d3774679bd
commit e3e4441909
65 changed files with 246 additions and 156 deletions

View File

@@ -1,3 +1,12 @@
module.exports = function () {
return this.group_title || 'Undefined'
if (this.group_title) return this.group_title
if (this.categories.length) {
return this.categories
.map(category => category.name)
.sort()
.join(';')
}
return 'Undefined'
}