iptv/scripts/store/getters/title.js

14 lines
234 B
JavaScript
Raw Normal View History

2021-12-12 05:11:50 +01:00
module.exports = function () {
2022-02-06 22:04:56 +01:00
let title = this.channel_name
2021-12-12 05:11:50 +01:00
if (this.resolution.height) {
title += ` (${this.resolution.height}p)`
}
if (this.status.label) {
title += ` [${this.status.label}]`
}
return title
}