From f068bbaa1fa0e4e67897a61a086aee51d3bc0ef4 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 12 Aug 2021 18:42:25 +0300 Subject: [PATCH] Update Channel.js --- scripts/helpers/Channel.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/helpers/Channel.js b/scripts/helpers/Channel.js index 8c4b0c397..07d5c60bd 100644 --- a/scripts/helpers/Channel.js +++ b/scripts/helpers/Channel.js @@ -20,6 +20,11 @@ module.exports = class Channel { this.category = this.parseCategory(data.group.title) this.countries = this.parseCountries(data.tvg.country) this.languages = this.parseLanguages(data.tvg.language) + this.hash = this.generateHash() + } + + generateHash() { + return `${this.tvg.id}:${this.tvg.name}:${this.tvg.country}:${this.tvg.language}:${this.logo}:${this.group.title}:${this.name}`.toLowerCase() } updateUrl(url) {