iptv/scripts/store/getters/title.js
2021-12-12 07:11:50 +03:00

14 lines
226 B
JavaScript

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