mirror of
https://github.com/iptv-org/iptv
synced 2026-04-29 06:07:06 -04:00
Update generate-playlist.js
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
module.exports = function () {
|
||||
return this.tvg_country || ''
|
||||
if (this.tvg_country) return this.tvg_country
|
||||
|
||||
if (this.broadcast_area.length) {
|
||||
return this.broadcast_area
|
||||
.map(item => {
|
||||
const [_, code] = item.split('/')
|
||||
return code
|
||||
})
|
||||
.filter(i => i)
|
||||
.sort()
|
||||
.join(';')
|
||||
}
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user