From 96df545487bfd0ccf54edd4ba577f96fd4e87210 Mon Sep 17 00:00:00 2001 From: freearhey Date: Sat, 8 May 2021 16:30:10 +0300 Subject: [PATCH] Update parser.js --- scripts/parser.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/parser.js b/scripts/parser.js index 35455c367..007d76dc1 100644 --- a/scripts/parser.js +++ b/scripts/parser.js @@ -63,8 +63,6 @@ class Channel { this.countries = countryName ? [{ code: this.filename, name: countryName }] : [] this.tvg.country = this.countries.map(c => c.code.toUpperCase()).join(';') } - - this.tvg.url = header.attrs['x-tvg-url'] || '' } parseData(data) { @@ -160,7 +158,7 @@ class Channel { } get tvgUrl() { - return (this.tvg.id || this.tvg.name) && this.tvg.url ? this.tvg.url : '' + return this.tvg.id && this.tvg.url ? this.tvg.url : '' } get tvgId() { @@ -228,7 +226,7 @@ class Channel { tvg: { id: this.tvgId || null, name: this.tvgName || null, - url: this.tvg.url || null + url: this.tvgUrl || null } } }