iptv/scripts/store/getters/title.js

14 lines
234 B
JavaScript

module.exports = function () {
let title = this.channel_name
if (this.resolution.height) {
title += ` (${this.resolution.height}p)`
}
if (this.status.label) {
title += ` [${this.status.label}]`
}
return title
}