mirror of
https://github.com/iptv-org/iptv
synced 2026-11-06 17:24:09 -05:00
Update generate-playlist.js
This commit is contained in:
1 parent
d3774679bd
commit
e3e4441909
65 files changed
+246
-156
No files matched your search
@@ -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 ''
|
||||
}
|
||||
Reference in new issue
Block a user