iptv/scripts/store/getters/tvg_country.js

17 lines
311 B
JavaScript
Raw Normal View History

2021-12-12 05:11:50 +01:00
module.exports = function () {
2022-02-11 17:56:11 +01:00
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 ''
2021-12-12 05:11:50 +01:00
}