Update Channel.js

This commit is contained in:
Aleksandr Statciuk 2021-09-19 10:43:57 +03:00
parent e5cc41aeee
commit 16bec418fe
1 changed files with 4 additions and 2 deletions

View File

@ -109,9 +109,11 @@ module.exports = class Channel {
} }
getInfo() { 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) { if (this.resolution.height) {
info += ` (${this.resolution.height}p)` info += ` (${this.resolution.height}p)`