Update Channel.js

This commit is contained in:
Aleksandr Statciuk 2021-09-19 10:43:57 +03:00
parent e5cc41aeee
commit 16bec418fe

View file

@ -109,9 +109,11 @@ module.exports = class Channel {
}
getInfo() {
let info = `-1 tvg-id="${this.tvg.id}" tvg-country="${this.tvg.country}" tvg-language="${this.tvg.language}" tvg-logo="${this.logo}"`
let info = `-1 tvg-id="${this.tvg.id}" tvg-country="${this.tvg.country || ''}" tvg-language="${
this.tvg.language || ''
}" tvg-logo="${this.logo || ''}"`
info += ` group-title="${this.group.title}",${this.name}`
info += ` group-title="${this.group.title || ''}",${this.name}`
if (this.resolution.height) {
info += ` (${this.resolution.height}p)`