mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-14 11:00:03 -04:00
Update Channel.js
This commit is contained in:
parent
ae5fbce25e
commit
f068bbaa1f
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue