14 lines
269 B
JavaScript
14 lines
269 B
JavaScript
module.exports = function () {
|
|
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 ''
|
|
}
|