iptv/scripts/store/getters/display_name.js

14 lines
227 B
JavaScript
Raw Normal View History

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