Update generate-playlist.js

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

No files matched your search

+11 -1
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 ''
}