Update generate-playlist.js

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

View File

@@ -1,3 +1,13 @@
module.exports = function () {
return this.tvg_language || ''
if (this.tvg_language) return this.tvg_language
if (this.languages.length) {
return this.languages
.map(language => (language ? language.name : null))
.filter(l => l)
.sort()
.join(';')
}
return ''
}