diff --git a/scripts/helpers/Channel.js b/scripts/helpers/Channel.js index aa10bc8800..8d4a97f57f 100644 --- a/scripts/helpers/Channel.js +++ b/scripts/helpers/Channel.js @@ -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)`