iptv/scripts/store/getters/tvg_country.js

17 lines
311 B
JavaScript

module.exports = function () {
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 ''
}