diff --git a/scripts/helpers/Channel.js b/scripts/helpers/Channel.js index 8c4b0c397a..07d5c60bdf 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) {