Update Channel.js

This commit is contained in:
Aleksandr Statciuk 2021-08-12 18:42:25 +03:00
parent ae5fbce25e
commit f068bbaa1f
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ module.exports = class Channel {
this.category = this.parseCategory(data.group.title) this.category = this.parseCategory(data.group.title)
this.countries = this.parseCountries(data.tvg.country) this.countries = this.parseCountries(data.tvg.country)
this.languages = this.parseLanguages(data.tvg.language) 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) { updateUrl(url) {