From 16bec418fef366802dfdce5324592268b3418c49 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 19 Sep 2021 10:43:57 +0300 Subject: [PATCH] Update Channel.js --- scripts/helpers/Channel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)`